Expand description
Interest to register regarding the file descriptor
Fields
readable: boolWait for the FD to be readable
writable: boolWait for the FD to be writable
Implementations
sourceimpl Interest
impl Interest
sourcepub const EMPTY: Interest = Interest {
readable: false,
writable: false,
}
pub const EMPTY: Interest = Interest { readable: false, writable: false, }
Shorthand for empty interest
sourcepub const READ: Interest = Interest {
readable: true,
writable: false,
}
pub const READ: Interest = Interest { readable: true, writable: false, }
Shorthand for read interest
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnwindSafe for Interest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more