Struct libparted_sys::_PedDeviceArchOps[][src]

#[repr(C)]
pub struct _PedDeviceArchOps {
Show 15 fields pub _new: Option<unsafe extern "C" fn(path: *const c_char) -> *mut PedDevice>, pub destroy: Option<unsafe extern "C" fn(dev: *mut PedDevice)>, pub is_busy: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>, pub open: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>, pub refresh_open: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>, pub close: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>, pub refresh_close: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>, pub read: Option<unsafe extern "C" fn(dev: *const PedDevice, buffer: *mut c_void, start: PedSector, count: PedSector) -> c_int>, pub write: Option<unsafe extern "C" fn(dev: *mut PedDevice, buffer: *const c_void, start: PedSector, count: PedSector) -> c_int>, pub sync: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>, pub sync_fast: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>, pub check: Option<unsafe extern "C" fn(dev: *mut PedDevice, buffer: *mut c_void, start: PedSector, count: PedSector) -> PedSector>, pub probe_all: Option<unsafe extern "C" fn()>, pub get_minimum_alignment: Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedAlignment>, pub get_optimum_alignment: Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedAlignment>,
}

Fields

_new: Option<unsafe extern "C" fn(path: *const c_char) -> *mut PedDevice>destroy: Option<unsafe extern "C" fn(dev: *mut PedDevice)>is_busy: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>open: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>refresh_open: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>close: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>refresh_close: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>read: Option<unsafe extern "C" fn(dev: *const PedDevice, buffer: *mut c_void, start: PedSector, count: PedSector) -> c_int>write: Option<unsafe extern "C" fn(dev: *mut PedDevice, buffer: *const c_void, start: PedSector, count: PedSector) -> c_int>sync: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>sync_fast: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>check: Option<unsafe extern "C" fn(dev: *mut PedDevice, buffer: *mut c_void, start: PedSector, count: PedSector) -> PedSector>probe_all: Option<unsafe extern "C" fn()>get_minimum_alignment: Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedAlignment>get_optimum_alignment: Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedAlignment>

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

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.