#[repr(C)]pub struct git_odb_stream {
pub backend: *mut git_odb_backend,
pub mode: c_uint,
pub hash_ctx: *mut c_void,
pub declared_size: git_object_size_t,
pub received_bytes: git_object_size_t,
pub read: Option<extern "C" fn(*mut git_odb_stream, *mut c_char, size_t) -> c_int>,
pub write: Option<extern "C" fn(*mut git_odb_stream, *const c_char, size_t) -> c_int>,
pub finalize_write: Option<extern "C" fn(*mut git_odb_stream, *const git_oid) -> c_int>,
pub free: Option<extern "C" fn(*mut git_odb_stream)>,
}Fields§
§backend: *mut git_odb_backend§mode: c_uint§hash_ctx: *mut c_void§declared_size: git_object_size_t§received_bytes: git_object_size_t§read: Option<extern "C" fn(*mut git_odb_stream, *mut c_char, size_t) -> c_int>§write: Option<extern "C" fn(*mut git_odb_stream, *const c_char, size_t) -> c_int>§finalize_write: Option<extern "C" fn(*mut git_odb_stream, *const git_oid) -> c_int>§free: Option<extern "C" fn(*mut git_odb_stream)>Auto Trait Implementations§
impl Freeze for git_odb_stream
impl RefUnwindSafe for git_odb_stream
impl !Send for git_odb_stream
impl !Sync for git_odb_stream
impl Unpin for git_odb_stream
impl UnsafeUnpin for git_odb_stream
impl UnwindSafe for git_odb_stream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more