2024-01-30 10:05:37 +00:00
|
|
|
use std::io;
|
|
|
|
|
|
|
|
#[derive(thiserror::Error, Debug)]
|
|
|
|
pub enum Error {
|
2024-03-27 06:28:47 +00:00
|
|
|
#[error("kernel error: {0}")]
|
2024-01-30 10:05:37 +00:00
|
|
|
Kernel(#[from] nix::errno::Errno),
|
2024-03-27 06:28:47 +00:00
|
|
|
#[error("io issue encountered: {0}")]
|
2024-01-30 10:05:37 +00:00
|
|
|
Io(#[from] io::Error),
|
2024-03-27 06:28:47 +00:00
|
|
|
#[error("failed to send event channel wake: {0}")]
|
2024-02-14 20:50:11 +00:00
|
|
|
WakeSend(tokio::sync::broadcast::error::SendError<u32>),
|
2024-01-30 10:05:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub type Result<T> = std::result::Result<T, Error>;
|