Enum diskio::IoctlCmd

source ·
pub enum IoctlCmd<'a> {
    CtrlSync,
    GetSectorCount(&'a mut Lba),
    GetSectorSize(&'a mut SectorSize),
    GetBlockSize(&'a mut BlockSize),
    CtrlTrim(&'a DataArea),
}
Expand description

Ioctl commands.

Variants§

§

CtrlSync

Complete pending write process.

§

GetSectorCount(&'a mut Lba)

Get media size.

§

GetSectorSize(&'a mut SectorSize)

Get sector size.

§

GetBlockSize(&'a mut BlockSize)

Get erase block size.

§

CtrlTrim(&'a DataArea)

Inform device that the data on the block of sectors is no longer used.

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.