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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more