nvme/nvm/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
mod dataset;
mod read;
mod write;

pub use dataset::{
    AccessFrequency, AccessLatency, ContextAttributes, DatasetMgmtCommand, DatasetMgmtDword11,
};
pub use read::{ReadCommand, ReadDword13};
pub use write::{WriteCommand, WriteDword13};

#[repr(u8)]
pub enum NvmCommand {
    Write = 1,
    Read = 2,
    DatasetMgmt = 9,
}

impl From<NvmCommand> for u8 {
    fn from(a: NvmCommand) -> Self {
        a as u8
    }
}