pub struct BlockInfoStr<'a> {
    pub length: u32,
    pub capacity: u32,
    pub kind: BlockKind,
    pub status: BlockStatus,
    pub name: Option<&'a str>,
}
Expand description

A type containing information about a single block of a Block Storage Device.

Fields

length: u32

The used length (in bytes) of the given block

capacity: u32

The capacity (in bytes) of the given block

kind: BlockKind

The “kind” of the given block

status: BlockStatus

The current status of the given block

name: Option<&'a str>

The file name of the given block, if any

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.