pub struct Event {
pub token: Token,
pub readable: bool,
pub priority: bool,
pub writable: bool,
pub error: bool,
}Expand description
A readiness event generated by the reactor.
Fields§
§token: TokenToken associated with the ready descriptor.
readable: boolDescriptor is ready for reading.
priority: boolDescriptor has priority data or an exceptional condition (EPOLLPRI).
writable: boolDescriptor is ready for writing.
error: boolIndicates an error or hangup (EPOLLERR | EPOLLHUP).
NOTE: For edge-triggered readiness, an error condition often means both readable and writable are set to ensure the handler drains the FD.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more