mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 05:10:55 +00:00
12 lines
253 B
Rust
12 lines
253 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),
|
||
|
}
|
||
|
|
||
|
pub type Result<T> = std::result::Result<T, Error>;
|