Struct libparted_sys::_PedDiskOps[][src]

#[repr(C)]
pub struct _PedDiskOps {
Show 28 fields pub probe: Option<unsafe extern "C" fn(dev: *const PedDevice) -> c_int>, pub clobber: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>, pub alloc: Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedDisk>, pub duplicate: Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedDisk>, pub free: Option<unsafe extern "C" fn(disk: *mut PedDisk)>, pub read: Option<unsafe extern "C" fn(disk: *mut PedDisk) -> c_int>, pub write: Option<unsafe extern "C" fn(disk: *const PedDisk) -> c_int>, pub disk_set_flag: Option<unsafe extern "C" fn(disk: *mut PedDisk, flag: PedDiskFlag, state: c_int) -> c_int>, pub disk_get_flag: Option<unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> c_int>, pub disk_is_flag_available: Option<unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> c_int>, pub partition_new: Option<unsafe extern "C" fn(disk: *const PedDisk, part_type: PedPartitionType, fs_type: *const PedFileSystemType, start: PedSector, end: PedSector) -> *mut PedPartition>, pub partition_duplicate: Option<unsafe extern "C" fn(part: *const PedPartition) -> *mut PedPartition>, pub partition_destroy: Option<unsafe extern "C" fn(part: *mut PedPartition)>, pub partition_set_system: Option<unsafe extern "C" fn(part: *mut PedPartition, fs_type: *const PedFileSystemType) -> c_int>, pub partition_set_flag: Option<unsafe extern "C" fn(part: *mut PedPartition, flag: PedPartitionFlag, state: c_int) -> c_int>, pub partition_get_flag: Option<unsafe extern "C" fn(part: *const PedPartition, flag: PedPartitionFlag) -> c_int>, pub partition_is_flag_available: Option<unsafe extern "C" fn(part: *const PedPartition, flag: PedPartitionFlag) -> c_int>, pub partition_set_name: Option<unsafe extern "C" fn(part: *mut PedPartition, name: *const c_char)>, pub partition_get_name: Option<unsafe extern "C" fn(part: *const PedPartition) -> *const c_char>, pub partition_align: Option<unsafe extern "C" fn(part: *mut PedPartition, constraint: *const PedConstraint) -> c_int>, pub partition_enumerate: Option<unsafe extern "C" fn(part: *mut PedPartition) -> c_int>, pub partition_check: Option<unsafe extern "C" fn(part: *const PedPartition) -> bool>, pub alloc_metadata: Option<unsafe extern "C" fn(disk: *mut PedDisk) -> c_int>, pub get_max_primary_partition_count: Option<unsafe extern "C" fn(disk: *const PedDisk) -> c_int>, pub get_max_supported_partition_count: Option<unsafe extern "C" fn(disk: *const PedDisk, supported: *mut c_int) -> bool>, pub get_partition_alignment: Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedAlignment>, pub max_length: Option<unsafe extern "C" fn() -> PedSector>, pub max_start_sector: Option<unsafe extern "C" fn() -> PedSector>,
}

Fields

probe: Option<unsafe extern "C" fn(dev: *const PedDevice) -> c_int>clobber: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>alloc: Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedDisk>duplicate: Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedDisk>free: Option<unsafe extern "C" fn(disk: *mut PedDisk)>read: Option<unsafe extern "C" fn(disk: *mut PedDisk) -> c_int>write: Option<unsafe extern "C" fn(disk: *const PedDisk) -> c_int>disk_set_flag: Option<unsafe extern "C" fn(disk: *mut PedDisk, flag: PedDiskFlag, state: c_int) -> c_int>disk_get_flag: Option<unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> c_int>disk_is_flag_available: Option<unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> c_int>partition_new: Option<unsafe extern "C" fn(disk: *const PedDisk, part_type: PedPartitionType, fs_type: *const PedFileSystemType, start: PedSector, end: PedSector) -> *mut PedPartition>partition_duplicate: Option<unsafe extern "C" fn(part: *const PedPartition) -> *mut PedPartition>partition_destroy: Option<unsafe extern "C" fn(part: *mut PedPartition)>partition_set_system: Option<unsafe extern "C" fn(part: *mut PedPartition, fs_type: *const PedFileSystemType) -> c_int>partition_set_flag: Option<unsafe extern "C" fn(part: *mut PedPartition, flag: PedPartitionFlag, state: c_int) -> c_int>partition_get_flag: Option<unsafe extern "C" fn(part: *const PedPartition, flag: PedPartitionFlag) -> c_int>partition_is_flag_available: Option<unsafe extern "C" fn(part: *const PedPartition, flag: PedPartitionFlag) -> c_int>partition_set_name: Option<unsafe extern "C" fn(part: *mut PedPartition, name: *const c_char)>partition_get_name: Option<unsafe extern "C" fn(part: *const PedPartition) -> *const c_char>partition_align: Option<unsafe extern "C" fn(part: *mut PedPartition, constraint: *const PedConstraint) -> c_int>partition_enumerate: Option<unsafe extern "C" fn(part: *mut PedPartition) -> c_int>partition_check: Option<unsafe extern "C" fn(part: *const PedPartition) -> bool>alloc_metadata: Option<unsafe extern "C" fn(disk: *mut PedDisk) -> c_int>get_max_primary_partition_count: Option<unsafe extern "C" fn(disk: *const PedDisk) -> c_int>get_max_supported_partition_count: Option<unsafe extern "C" fn(disk: *const PedDisk, supported: *mut c_int) -> bool>get_partition_alignment: Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedAlignment>max_length: Option<unsafe extern "C" fn() -> PedSector>max_start_sector: Option<unsafe extern "C" fn() -> PedSector>

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.