1
0
Fork 0
forked from wry/wry

autocommit 2022-03-09 14:01:21 CET

This commit is contained in:
Julian Orth 2022-03-09 14:01:21 +01:00
parent aa0cb94143
commit 4df6b559b7
32 changed files with 1121 additions and 172 deletions

View file

@ -9,17 +9,17 @@ use uapi::{c, Errno, OwnedFd};
#[derive(Debug, Error)]
pub enum EventLoopError {
#[error("Could not create an epoll fd: {0}")]
CreateFailed(std::io::Error),
CreateFailed(crate::utils::oserror::OsError),
#[error("epoll_wait failed: {0}")]
WaitFailed(std::io::Error),
WaitFailed(crate::utils::oserror::OsError),
#[error("A dispatcher returned a fatal error: {0}")]
DispatcherError(Box<dyn std::error::Error>),
#[error("Could not insert an fd to wait on: {0}")]
InsertFailed(std::io::Error),
InsertFailed(crate::utils::oserror::OsError),
#[error("Could not modify an fd to wait on: {0}")]
ModifyFailed(std::io::Error),
ModifyFailed(crate::utils::oserror::OsError),
#[error("Could not remove an fd to wait on: {0}")]
RemoveFailed(std::io::Error),
RemoveFailed(crate::utils::oserror::OsError),
#[error("Entry is not registered")]
NoEntry,
#[error("Event loop is already destroyed")]