mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-04 05:31:32 +00:00
14 lines
320 B
Rust
14 lines
320 B
Rust
![]() |
use std::io;
|
||
|
|
||
|
#[derive(thiserror::Error, Debug)]
|
||
|
pub enum Error {
|
||
|
#[error("kernel error")]
|
||
|
Kernel(#[from] nix::errno::Errno),
|
||
|
#[error("io issue encountered")]
|
||
|
Io(#[from] io::Error),
|
||
|
#[error("populate physmap failed")]
|
||
|
PopulatePhysmapFailed,
|
||
|
}
|
||
|
|
||
|
pub type Result<T> = std::result::Result<T, Error>;
|