#[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

source§

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)

Performs copy-assignment from source. Read more
source§

impl Debug for struct_io_manager

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for struct_io_manager

source§

impl Send for struct_io_manager

source§

impl Sync for struct_io_manager

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.