#[repr(C)]
pub struct BlockIOMedia { /* private fields */ }
Expand description

Media information structure

Implementations

The current media ID.

True if the media is removable.

True if there is a media currently present in the device.

True if block IO was produced to abstract partition structure.

True if the media is marked read-only.

True if writeBlocks function writes data.

The intrinsic block size of the device.

If the media changes, then this field is updated. Returns the number of bytes per logical block.

Supplies the alignment requirement for any buffer used in a data transfer.

The last LBA on the device. If the media changes, then this field is updated.

Returns the first LBA that is aligned to a physical block boundary.

Returns the number of logical blocks per physical block.

Returns the optimal transfer length granularity as a number of logical blocks.

Trait Implementations

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.