pub struct Event {
pub fd: RawFd,
pub readable: bool,
pub writable: bool,
pub error: bool,
pub hangup: bool,
}Expand description
I/O event notification.
Fields§
§fd: RawFdFile descriptor/handle the event applies to.
readable: boolRead readiness was reported.
writable: boolWrite readiness was reported.
error: boolAn error condition was reported.
hangup: boolThe peer hung up.
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