Struct libgit2_sys::git_transport
source · [−]#[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_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, 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
impl RefUnwindSafe for git_transport
impl Send for git_transport
impl Sync for git_transport
impl Unpin for git_transport
impl UnwindSafe for git_transport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more