#[repr(C)]
pub struct lfs_config {
Show 14 fields pub context: *mut c_void, pub read: Option<unsafe extern "C" fn(c: *const lfs_config, block: lfs_block_t, off: lfs_off_t, buffer: *mut c_void, size: lfs_size_t) -> c_int>, pub prog: Option<unsafe extern "C" fn(c: *const lfs_config, block: lfs_block_t, off: lfs_off_t, buffer: *const c_void, size: lfs_size_t) -> c_int>, pub erase: Option<unsafe extern "C" fn(c: *const lfs_config, block: lfs_block_t) -> c_int>, pub sync: Option<unsafe extern "C" fn(c: *const lfs_config) -> c_int>, pub read_size: lfs_size_t, pub prog_size: lfs_size_t, pub block_size: lfs_size_t, pub block_count: lfs_size_t, pub lookahead: lfs_size_t, pub read_buffer: *mut c_void, pub prog_buffer: *mut c_void, pub lookahead_buffer: *mut c_void, pub file_buffer: *mut c_void,
}

Fields§

§context: *mut c_void§read: Option<unsafe extern "C" fn(c: *const lfs_config, block: lfs_block_t, off: lfs_off_t, buffer: *mut c_void, size: lfs_size_t) -> c_int>§prog: Option<unsafe extern "C" fn(c: *const lfs_config, block: lfs_block_t, off: lfs_off_t, buffer: *const c_void, size: lfs_size_t) -> c_int>§erase: Option<unsafe extern "C" fn(c: *const lfs_config, block: lfs_block_t) -> c_int>§sync: Option<unsafe extern "C" fn(c: *const lfs_config) -> c_int>§read_size: lfs_size_t§prog_size: lfs_size_t§block_size: lfs_size_t§block_count: lfs_size_t§lookahead: lfs_size_t§read_buffer: *mut c_void§prog_buffer: *mut c_void§lookahead_buffer: *mut c_void§file_buffer: *mut c_void

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

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.