Struct uefi::proto::media::block::BlockIOMedia[][src]

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

Media information structure

Implementations

impl BlockIOMedia[src]

pub fn media_id(&self) -> u32[src]

The current media ID.

pub fn is_removable_media(&self) -> bool[src]

True if the media is removable.

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]

True if block IO was produced to abstract partition structure.

pub fn is_read_only(&self) -> bool[src]

True if the media is marked read-only.

pub fn is_write_caching(&self) -> bool[src]

True if writeBlocks function writes data.

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]

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

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]

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

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]

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

Trait Implementations

impl Debug for BlockIOMedia[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.