Struct sozu_command_lib::ready::Ready
source · 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 PartialEq for Ready
impl PartialEq for Ready
source§impl PartialOrd for Ready
impl PartialOrd for Ready
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Ready
impl Eq for Ready
impl StructuralEq for Ready
impl StructuralPartialEq for Ready
Auto Trait Implementations§
impl RefUnwindSafe for Ready
impl Send for Ready
impl Sync for Ready
impl Unpin for Ready
impl UnwindSafe for Ready
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.