Struct libgit2_sys::git_transport
source · [−]#[repr(C)]pub struct git_transport {Show 13 fields
pub version: c_uint,
pub set_callbacks: Option<extern "C" fn(_: *mut git_transport, _: git_transport_message_cb, _: git_transport_message_cb, _: git_transport_certificate_check_cb, _: *mut c_void) -> c_int>,
pub set_custom_headers: Option<extern "C" fn(_: *mut git_transport, _: *const git_strarray) -> c_int>,
pub connect: Option<extern "C" fn(_: *mut git_transport, _: *const c_char, _: git_cred_acquire_cb, _: *mut c_void, _: *const git_proxy_options, _: c_int, _: c_int) -> c_int>,
pub ls: Option<extern "C" fn(_: *mut *mut *const git_remote_head, _: *mut size_t, _: *mut git_transport) -> c_int>,
pub push: Option<extern "C" fn(_: *mut git_transport, _: *mut git_push, _: *const git_remote_callbacks) -> c_int>,
pub negotiate_fetch: Option<extern "C" fn(_: *mut git_transport, _: *mut git_repository, _: *const *const git_remote_head, _: size_t) -> c_int>,
pub download_pack: Option<extern "C" fn(_: *mut git_transport, _: *mut git_repository, _: *mut git_indexer_progress, _: git_indexer_progress_cb, _: *mut c_void) -> c_int>,
pub is_connected: Option<extern "C" fn(_: *mut git_transport) -> c_int>,
pub read_flags: Option<extern "C" fn(_: *mut git_transport, _: *mut c_int) -> c_int>,
pub cancel: Option<extern "C" fn(_: *mut git_transport)>,
pub close: Option<extern "C" fn(_: *mut git_transport) -> c_int>,
pub free: Option<extern "C" fn(_: *mut git_transport)>,
}
Fields
version: c_uint
set_callbacks: Option<extern "C" fn(_: *mut git_transport, _: git_transport_message_cb, _: git_transport_message_cb, _: git_transport_certificate_check_cb, _: *mut c_void) -> c_int>
set_custom_headers: Option<extern "C" fn(_: *mut git_transport, _: *const git_strarray) -> c_int>
connect: Option<extern "C" fn(_: *mut git_transport, _: *const c_char, _: git_cred_acquire_cb, _: *mut c_void, _: *const git_proxy_options, _: c_int, _: c_int) -> c_int>
ls: Option<extern "C" fn(_: *mut *mut *const git_remote_head, _: *mut size_t, _: *mut git_transport) -> c_int>
push: Option<extern "C" fn(_: *mut git_transport, _: *mut git_push, _: *const git_remote_callbacks) -> c_int>
negotiate_fetch: Option<extern "C" fn(_: *mut git_transport, _: *mut git_repository, _: *const *const git_remote_head, _: size_t) -> c_int>
download_pack: Option<extern "C" fn(_: *mut git_transport, _: *mut git_repository, _: *mut git_indexer_progress, _: git_indexer_progress_cb, _: *mut c_void) -> c_int>
is_connected: Option<extern "C" fn(_: *mut git_transport) -> c_int>
read_flags: Option<extern "C" fn(_: *mut git_transport, _: *mut c_int) -> c_int>
cancel: Option<extern "C" fn(_: *mut git_transport)>
close: Option<extern "C" fn(_: *mut git_transport) -> c_int>
free: Option<extern "C" fn(_: *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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more