pub struct Event {
pub token: usize,
pub readable: bool,
pub writable: bool,
}Expand description
A single I/O readiness event returned from a poll call.
Fields§
§token: usizeCaller-provided token identifying the I/O source.
readable: boolTrue when the source is ready for reading.
writable: boolTrue when the source is ready for writing.
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