pub struct Interest(/* private fields */);Expand description
Bitmask describing which I/O events a source is interested in.
Implementations§
Source§impl Interest
impl Interest
Sourcepub fn is_readable(self) -> bool
pub fn is_readable(self) -> bool
Returns true if the READABLE bit is set.
Sourcepub fn is_writable(self) -> bool
pub fn is_writable(self) -> bool
Returns true if the WRITABLE bit is set.
Trait Implementations§
Source§impl BitOrAssign for Interest
impl BitOrAssign for Interest
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreimpl Copy for Interest
impl Eq for Interest
impl StructuralPartialEq for Interest
Auto Trait Implementations§
impl Freeze for Interest
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnsafeUnpin for Interest
impl UnwindSafe for Interest
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