#[repr(C)]pub struct BlockIOMedia { /* private fields */ }
Expand description
Media information structure
Implementations
sourceimpl BlockIOMedia
impl BlockIOMedia
sourcepub fn is_removable_media(&self) -> bool
pub fn is_removable_media(&self) -> bool
True if the media is removable.
sourcepub fn is_media_preset(&self) -> bool
pub fn is_media_preset(&self) -> bool
True if there is a media currently present in the device.
sourcepub fn is_logical_partition(&self) -> bool
pub fn is_logical_partition(&self) -> bool
True if block IO was produced to abstract partition structure.
sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
True if the media is marked read-only.
sourcepub fn is_write_caching(&self) -> bool
pub fn is_write_caching(&self) -> bool
True if writeBlocks
function writes data.
sourcepub fn block_size(&self) -> u32
pub fn block_size(&self) -> u32
The intrinsic block size of the device.
If the media changes, then this field is updated. Returns the number of bytes per logical block.
sourcepub fn io_align(&self) -> u32
pub fn io_align(&self) -> u32
Supplies the alignment requirement for any buffer used in a data transfer.
sourcepub fn last_block(&self) -> Lba
pub fn last_block(&self) -> Lba
The last LBA on the device. If the media changes, then this field is updated.
sourcepub fn lowest_aligned_lba(&self) -> Lba
pub fn lowest_aligned_lba(&self) -> Lba
Returns the first LBA that is aligned to a physical block boundary.
sourcepub fn logical_blocks_per_physical_block(&self) -> u32
pub fn logical_blocks_per_physical_block(&self) -> u32
Returns the number of logical blocks per physical block.
sourcepub fn optimal_transfer_length_granularity(&self) -> u32
pub fn optimal_transfer_length_granularity(&self) -> u32
Returns the optimal transfer length granularity as a number of logical blocks.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BlockIOMedia
impl Send for BlockIOMedia
impl Sync for BlockIOMedia
impl Unpin for BlockIOMedia
impl UnwindSafe for BlockIOMedia
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more