#[repr(C)]
pub struct git_transport {
Show 13 fields 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, fetch_data: *const git_fetch_negotiation) -> c_int>, pub shallow_roots: Option<extern "C" fn(out: *mut git_oidarray, transport: *mut git_transport) -> 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_uint§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>§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, fetch_data: *const git_fetch_negotiation) -> c_int>§shallow_roots: Option<extern "C" fn(out: *mut git_oidarray, transport: *mut git_transport) -> 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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.