chore(xen): rewrite event channel code

This commit is contained in:
Alex Zenla
2024-08-13 14:59:43 -07:00
parent ffc9dcc0ea
commit 621ae536f6
10 changed files with 203 additions and 137 deletions

View File

@ -8,6 +8,10 @@ pub enum Error {
Io(#[from] io::Error),
#[error("failed to send event channel wake: {0}")]
WakeSend(tokio::sync::broadcast::error::SendError<u32>),
#[error("failed to acquire lock")]
LockAcquireFailed,
#[error("event port already in use")]
PortInUse,
}
pub type Result<T> = std::result::Result<T, Error>;