Struct uefi::proto::media::block::BlockIOMedia [−][src]
#[repr(C)]pub struct BlockIOMedia { /* fields omitted */ }
Expand description
Media information structure
Implementations
impl BlockIOMedia
[src]
impl BlockIOMedia
[src]pub fn is_removable_media(&self) -> bool
[src]
pub fn is_removable_media(&self) -> bool
[src]True if the media is removable.
pub fn is_media_preset(&self) -> bool
[src]
pub fn is_media_preset(&self) -> bool
[src]True if there is a media currently present in the device.
pub fn is_logical_partition(&self) -> bool
[src]
pub fn is_logical_partition(&self) -> bool
[src]True if block IO was produced to abstract partition structure.
pub fn is_read_only(&self) -> bool
[src]
pub fn is_read_only(&self) -> bool
[src]True if the media is marked read-only.
pub fn is_write_caching(&self) -> bool
[src]
pub fn is_write_caching(&self) -> bool
[src]True if writeBlocks
function writes data.
pub fn block_size(&self) -> u32
[src]
pub fn block_size(&self) -> u32
[src]The intrinsic block size of the device.
If the media changes, then this field is updated. Returns the number of bytes per logical block.
pub fn io_align(&self) -> u32
[src]
pub fn io_align(&self) -> u32
[src]Supplies the alignment requirement for any buffer used in a data transfer.
pub fn last_block(&self) -> Lba
[src]
pub fn last_block(&self) -> Lba
[src]The last LBA on the device. If the media changes, then this field is updated.
pub fn lowest_aligned_lba(&self) -> Lba
[src]
pub fn lowest_aligned_lba(&self) -> Lba
[src]Returns the first LBA that is aligned to a physical block boundary.
pub fn logical_blocks_per_physical_block(&self) -> u32
[src]
pub fn logical_blocks_per_physical_block(&self) -> u32
[src]Returns the number of logical blocks per physical block.
pub fn optimal_transfer_length_granularity(&self) -> u32
[src]
pub fn optimal_transfer_length_granularity(&self) -> u32
[src]Returns the optimal transfer length granularity as a number of logical blocks.