#[repr(C)]
pub struct git_transport { pub version: c_uint, pub connect: Option<extern "C" fn(transport: *mut git_transport, url: *const c_char, direction: c_int, connect_opts: *const git_remote_connect_options) -> c_int>, pub set_connect_opts: Option<extern "C" fn(transport: *mut git_transport, connect_opts: *const git_remote_connect_options) -> c_int>, pub capabilities: Option<extern "C" fn(capabilities: *mut c_uint, transport: *mut git_transport) -> c_int>, pub ls: Option<extern "C" fn(out: *mut *mut *const git_remote_head, size: *mut size_t, transport: *mut git_transport) -> c_int>, pub push: Option<extern "C" fn(transport: *mut git_transport, push: *mut git_push) -> c_int>, pub negotiate_fetch: Option<extern "C" fn(transport: *mut git_transport, repo: *mut git_repository, refs: *const *const git_remote_head, count: size_t) -> c_int>, pub download_pack: Option<extern "C" fn(transport: *mut git_transport, repo: *mut git_repository, stats: *mut git_indexer_progress) -> c_int>, pub is_connected: Option<extern "C" fn(transport: *mut git_transport) -> c_int>, pub cancel: Option<extern "C" fn(transport: *mut git_transport)>, pub close: Option<extern "C" fn(transport: *mut git_transport) -> c_int>, pub free: Option<extern "C" fn(transport: *mut git_transport)>, }

Fields

version: c_uintconnect: Option<extern "C" fn(transport: *mut git_transport, url: *const c_char, direction: c_int, connect_opts: *const git_remote_connect_options) -> c_int>set_connect_opts: Option<extern "C" fn(transport: *mut git_transport, connect_opts: *const git_remote_connect_options) -> c_int>capabilities: Option<extern "C" fn(capabilities: *mut c_uint, transport: *mut git_transport) -> c_int>ls: Option<extern "C" fn(out: *mut *mut *const git_remote_head, size: *mut size_t, transport: *mut git_transport) -> c_int>push: Option<extern "C" fn(transport: *mut git_transport, push: *mut git_push) -> c_int>negotiate_fetch: Option<extern "C" fn(transport: *mut git_transport, repo: *mut git_repository, refs: *const *const git_remote_head, count: size_t) -> c_int>download_pack: Option<extern "C" fn(transport: *mut git_transport, repo: *mut git_repository, stats: *mut git_indexer_progress) -> c_int>is_connected: Option<extern "C" fn(transport: *mut git_transport) -> c_int>cancel: Option<extern "C" fn(transport: *mut git_transport)>close: Option<extern "C" fn(transport: *mut git_transport) -> c_int>free: Option<extern "C" fn(transport: *mut git_transport)>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.