Struct libe2fs_sys::struct_io_manager
source · #[repr(C)]pub struct struct_io_manager {Show 17 fields
pub magic: errcode_t,
pub name: *const c_char,
pub open: Option<unsafe extern "C" fn(name: *const c_char, flags: c_int, channel: *mut io_channel) -> errcode_t>,
pub close: Option<unsafe extern "C" fn(channel: io_channel) -> errcode_t>,
pub set_blksize: Option<unsafe extern "C" fn(channel: io_channel, blksize: c_int) -> errcode_t>,
pub read_blk: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulong, count: c_int, data: *mut c_void) -> errcode_t>,
pub write_blk: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulong, count: c_int, data: *const c_void) -> errcode_t>,
pub flush: Option<unsafe extern "C" fn(channel: io_channel) -> errcode_t>,
pub write_byte: Option<unsafe extern "C" fn(channel: io_channel, offset: c_ulong, count: c_int, data: *const c_void) -> errcode_t>,
pub set_option: Option<unsafe extern "C" fn(channel: io_channel, option: *const c_char, arg: *const c_char) -> errcode_t>,
pub get_stats: Option<unsafe extern "C" fn(channel: io_channel, io_stats: *mut io_stats) -> errcode_t>,
pub read_blk64: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_int, data: *mut c_void) -> errcode_t>,
pub write_blk64: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_int, data: *const c_void) -> errcode_t>,
pub discard: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_ulonglong) -> errcode_t>,
pub cache_readahead: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_ulonglong) -> errcode_t>,
pub zeroout: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_ulonglong) -> errcode_t>,
pub reserved: [c_long; 14],
}Fields§
§magic: errcode_t§name: *const c_char§open: Option<unsafe extern "C" fn(name: *const c_char, flags: c_int, channel: *mut io_channel) -> errcode_t>§close: Option<unsafe extern "C" fn(channel: io_channel) -> errcode_t>§set_blksize: Option<unsafe extern "C" fn(channel: io_channel, blksize: c_int) -> errcode_t>§read_blk: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulong, count: c_int, data: *mut c_void) -> errcode_t>§write_blk: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulong, count: c_int, data: *const c_void) -> errcode_t>§flush: Option<unsafe extern "C" fn(channel: io_channel) -> errcode_t>§write_byte: Option<unsafe extern "C" fn(channel: io_channel, offset: c_ulong, count: c_int, data: *const c_void) -> errcode_t>§set_option: Option<unsafe extern "C" fn(channel: io_channel, option: *const c_char, arg: *const c_char) -> errcode_t>§get_stats: Option<unsafe extern "C" fn(channel: io_channel, io_stats: *mut io_stats) -> errcode_t>§read_blk64: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_int, data: *mut c_void) -> errcode_t>§write_blk64: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_int, data: *const c_void) -> errcode_t>§discard: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_ulonglong) -> errcode_t>§cache_readahead: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_ulonglong) -> errcode_t>§zeroout: Option<unsafe extern "C" fn(channel: io_channel, block: c_ulonglong, count: c_ulonglong) -> errcode_t>§reserved: [c_long; 14]Trait Implementations§
source§impl Clone for struct_io_manager
impl Clone for struct_io_manager
source§fn clone(&self) -> struct_io_manager
fn clone(&self) -> struct_io_manager
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for struct_io_manager
impl Debug for struct_io_manager
impl Copy for struct_io_manager
impl Send for struct_io_manager
impl Sync for struct_io_manager
Auto Trait Implementations§
impl RefUnwindSafe for struct_io_manager
impl Unpin for struct_io_manager
impl UnwindSafe for struct_io_manager
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