pub struct Ready(pub u16);
Expand description
Binary representation of a file descriptor readiness (obtained through epoll)
Tuple Fields§
§0: u16
Implementations§
Source§impl Ready
impl Ready
pub const EMPTY: Ready
pub const READABLE: Ready
pub const WRITABLE: Ready
pub const ERROR: Ready
pub const ALL: Ready
pub fn is_empty(&self) -> bool
pub fn is_readable(&self) -> bool
pub fn is_writable(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_hup(&self) -> bool
pub fn insert<T: Into<Self>>(&mut self, other: T)
pub fn remove<T: Into<Self>>(&mut self, other: T)
pub fn contains<T: Into<Self>>(&self, other: T) -> bool
Trait Implementations§
Source§impl<T: Into<Ready>> BitOrAssign<T> for Ready
impl<T: Into<Ready>> BitOrAssign<T> for Ready
Source§fn bitor_assign(&mut self, other: T)
fn bitor_assign(&mut self, other: T)
Performs the
|=
operation. Read moreSource§impl Ord for Ready
impl Ord for Ready
Source§impl PartialOrd for Ready
impl PartialOrd for Ready
impl Copy for Ready
impl Eq for Ready
impl StructuralPartialEq for Ready
Auto Trait Implementations§
impl Freeze for Ready
impl RefUnwindSafe for Ready
impl Send for Ready
impl Sync for Ready
impl Unpin for Ready
impl UnwindSafe for Ready
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.