mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-05 14:11:32 +00:00
xen: begin work on xen grant mappings
This commit is contained in:
13
crates/xen/xengnt/src/error.rs
Normal file
13
crates/xen/xengnt/src/error.rs
Normal file
@ -0,0 +1,13 @@
|
||||
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("failed to read structure")]
|
||||
StructureReadFailed,
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
Reference in New Issue
Block a user