Struct tiny_std::linux::epoll::EpollEventMask
source · #[repr(transparent)]pub struct EpollEventMask(_);
Implementations§
source§impl EpollEventMask
impl EpollEventMask
pub const EPOLLIN: EpollEventMask = Self(1)
pub const EPOLLPRI: EpollEventMask = Self(2)
pub const EPOLLOUT: EpollEventMask = Self(4)
pub const EPOLLERR: EpollEventMask = Self(8)
pub const EPOLLHUP: EpollEventMask = Self(16)
pub const EPOLLNVAL: EpollEventMask = Self(32)
pub const EPOLLRDNORM: EpollEventMask = Self(64)
pub const EPOLLRDBAND: EpollEventMask = Self(128)
pub const EPOLLWRNORM: EpollEventMask = Self(256)
pub const EPOLLWRBAND: EpollEventMask = Self(512)
pub const EPOLLMSG: EpollEventMask = Self(1024)
pub const EPOLLRDHUP: EpollEventMask = Self(8192)
pub const EPOLLEXCLUSIVE: EpollEventMask = Self(1 << 28)
pub const EPOLLWAKEUP: EpollEventMask = Self(1 << 29)
pub const EPOLLONESHOT: EpollEventMask = Self(1 << 30)
pub const EPOLLET: EpollEventMask = Self(1 << 31)
pub const fn bits(&self) -> u32
pub const fn empty() -> EpollEventMask
pub fn contains(&self, other: EpollEventMask) -> bool
Trait Implementations§
source§impl BitAnd<EpollEventMask> for EpollEventMask
impl BitAnd<EpollEventMask> for EpollEventMask
§type Output = EpollEventMask
type Output = EpollEventMask
The resulting type after applying the
&
operator.source§fn bitand(
self,
rhs: EpollEventMask
) -> <EpollEventMask as BitAnd<EpollEventMask>>::Output
fn bitand( self, rhs: EpollEventMask ) -> <EpollEventMask as BitAnd<EpollEventMask>>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign<EpollEventMask> for EpollEventMask
impl BitAndAssign<EpollEventMask> for EpollEventMask
source§fn bitand_assign(&mut self, rhs: EpollEventMask)
fn bitand_assign(&mut self, rhs: EpollEventMask)
Performs the
&=
operation. Read moresource§impl BitOr<EpollEventMask> for EpollEventMask
impl BitOr<EpollEventMask> for EpollEventMask
§type Output = EpollEventMask
type Output = EpollEventMask
The resulting type after applying the
|
operator.source§fn bitor(
self,
rhs: EpollEventMask
) -> <EpollEventMask as BitOr<EpollEventMask>>::Output
fn bitor( self, rhs: EpollEventMask ) -> <EpollEventMask as BitOr<EpollEventMask>>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign<EpollEventMask> for EpollEventMask
impl BitOrAssign<EpollEventMask> for EpollEventMask
source§fn bitor_assign(&mut self, rhs: EpollEventMask)
fn bitor_assign(&mut self, rhs: EpollEventMask)
Performs the
|=
operation. Read moresource§impl Clone for EpollEventMask
impl Clone for EpollEventMask
source§fn clone(&self) -> EpollEventMask
fn clone(&self) -> EpollEventMask
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EpollEventMask
impl Debug for EpollEventMask
source§impl Default for EpollEventMask
impl Default for EpollEventMask
source§fn default() -> EpollEventMask
fn default() -> EpollEventMask
Returns the “default value” for a type. Read more
source§impl Hash for EpollEventMask
impl Hash for EpollEventMask
source§impl Ord for EpollEventMask
impl Ord for EpollEventMask
source§fn cmp(&self, other: &EpollEventMask) -> Ordering
fn cmp(&self, other: &EpollEventMask) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EpollEventMask> for EpollEventMask
impl PartialEq<EpollEventMask> for EpollEventMask
source§fn eq(&self, other: &EpollEventMask) -> bool
fn eq(&self, other: &EpollEventMask) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EpollEventMask> for EpollEventMask
impl PartialOrd<EpollEventMask> for EpollEventMask
source§fn partial_cmp(&self, other: &EpollEventMask) -> Option<Ordering>
fn partial_cmp(&self, other: &EpollEventMask) -> Option<Ordering>
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 EpollEventMask
impl Eq for EpollEventMask
impl StructuralEq for EpollEventMask
impl StructuralPartialEq for EpollEventMask
Auto Trait Implementations§
impl RefUnwindSafe for EpollEventMask
impl Send for EpollEventMask
impl Sync for EpollEventMask
impl Unpin for EpollEventMask
impl UnwindSafe for EpollEventMask
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