16 lines
279 B
Rust
16 lines
279 B
Rust
|
use abi::error::Error;
|
||
|
|
||
|
use super::queue::CommandError;
|
||
|
|
||
|
#[derive(Debug)]
|
||
|
pub enum NvmeError {
|
||
|
MemoryError(Error),
|
||
|
CommandError(CommandError),
|
||
|
}
|
||
|
|
||
|
impl From<CommandError> for NvmeError {
|
||
|
fn from(value: CommandError) -> Self {
|
||
|
Self::CommandError(value)
|
||
|
}
|
||
|
}
|