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 fn empty() -> Ready
pub const fn readable() -> Ready
pub const fn writable() -> Ready
pub const fn error() -> Ready
pub const fn hup() -> Ready
pub const fn 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<Ready> for Ready
impl PartialOrd<Ready> 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 more