syscall/
error.rs

1//!
2//! This file is part of syscall-rs
3//!
4
5/// Result type
6pub type Result<T> = std::result::Result<T, Error>;
7
8/// Error type
9#[derive(Debug, thiserror::Error)]
10pub enum Error {
11    /// System call error
12    #[error("System call error: {0}")]
13    Syscall(#[from] std::io::Error),
14}