pub struct EpollFlags(/* private fields */);Implementations§
Source§impl EpollFlags
impl EpollFlags
pub const EPOLLIN: EpollFlags
pub const EPOLLPRI: EpollFlags
pub const EPOLLOUT: EpollFlags
pub const EPOLLRDNORM: EpollFlags
pub const EPOLLRDBAND: EpollFlags
pub const EPOLLWRNORM: EpollFlags
pub const EPOLLWRBAND: EpollFlags
pub const EPOLLMSG: EpollFlags
pub const EPOLLERR: EpollFlags
pub const EPOLLHUP: EpollFlags
pub const EPOLLRDHUP: EpollFlags
pub const EPOLLEXCLUSIVE: EpollFlags
pub const EPOLLWAKEUP: EpollFlags
pub const EPOLLONESHOT: EpollFlags
pub const EPOLLET: EpollFlags
Source§impl EpollFlags
impl EpollFlags
Sourcepub const fn empty() -> EpollFlags
pub const fn empty() -> EpollFlags
Get a flags value with all bits unset.
Sourcepub const fn all() -> EpollFlags
pub const fn all() -> EpollFlags
Get a flags value with all known bits set.
Sourcepub const fn bits(&self) -> i32
pub const fn bits(&self) -> i32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: i32) -> Option<EpollFlags>
pub const fn from_bits(bits: i32) -> Option<EpollFlags>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: i32) -> EpollFlags
pub const fn from_bits_truncate(bits: i32) -> EpollFlags
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: i32) -> EpollFlags
pub const fn from_bits_retain(bits: i32) -> EpollFlags
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<EpollFlags>
pub fn from_name(name: &str) -> Option<EpollFlags>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(&self, other: EpollFlags) -> bool
pub const fn intersects(&self, other: EpollFlags) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: EpollFlags) -> bool
pub const fn contains(&self, other: EpollFlags) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn insert(&mut self, other: EpollFlags)
pub fn insert(&mut self, other: EpollFlags)
The bitwise or (|) of the bits in two flags values.
Sourcepub fn remove(&mut self, other: EpollFlags)
pub fn remove(&mut self, other: EpollFlags)
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
Sourcepub fn toggle(&mut self, other: EpollFlags)
pub fn toggle(&mut self, other: EpollFlags)
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub fn set(&mut self, other: EpollFlags, value: bool)
pub fn set(&mut self, other: EpollFlags, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(self, other: EpollFlags) -> EpollFlags
pub const fn intersection(self, other: EpollFlags) -> EpollFlags
The bitwise and (&) of the bits in two flags values.
Sourcepub const fn union(self, other: EpollFlags) -> EpollFlags
pub const fn union(self, other: EpollFlags) -> EpollFlags
The bitwise or (|) of the bits in two flags values.
Sourcepub const fn difference(self, other: EpollFlags) -> EpollFlags
pub const fn difference(self, other: EpollFlags) -> EpollFlags
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Sourcepub const fn symmetric_difference(self, other: EpollFlags) -> EpollFlags
pub const fn symmetric_difference(self, other: EpollFlags) -> EpollFlags
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub const fn complement(self) -> EpollFlags
pub const fn complement(self) -> EpollFlags
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§impl EpollFlags
impl EpollFlags
Sourcepub const fn iter(&self) -> Iter<EpollFlags>
pub const fn iter(&self) -> Iter<EpollFlags>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<EpollFlags>
pub const fn iter_names(&self) -> IterNames<EpollFlags>
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
Source§impl Binary for EpollFlags
impl Binary for EpollFlags
Source§impl BitAnd for EpollFlags
impl BitAnd for EpollFlags
Source§fn bitand(self, other: EpollFlags) -> EpollFlags
fn bitand(self, other: EpollFlags) -> EpollFlags
The bitwise and (&) of the bits in two flags values.
Source§type Output = EpollFlags
type Output = EpollFlags
& operator.Source§impl BitAndAssign for EpollFlags
impl BitAndAssign for EpollFlags
Source§fn bitand_assign(&mut self, other: EpollFlags)
fn bitand_assign(&mut self, other: EpollFlags)
The bitwise and (&) of the bits in two flags values.
Source§impl BitOr for EpollFlags
impl BitOr for EpollFlags
Source§fn bitor(self, other: EpollFlags) -> EpollFlags
fn bitor(self, other: EpollFlags) -> EpollFlags
The bitwise or (|) of the bits in two flags values.
Source§type Output = EpollFlags
type Output = EpollFlags
| operator.Source§impl BitOrAssign for EpollFlags
impl BitOrAssign for EpollFlags
Source§fn bitor_assign(&mut self, other: EpollFlags)
fn bitor_assign(&mut self, other: EpollFlags)
The bitwise or (|) of the bits in two flags values.
Source§impl BitXor for EpollFlags
impl BitXor for EpollFlags
Source§fn bitxor(self, other: EpollFlags) -> EpollFlags
fn bitxor(self, other: EpollFlags) -> EpollFlags
The bitwise exclusive-or (^) of the bits in two flags values.
Source§type Output = EpollFlags
type Output = EpollFlags
^ operator.Source§impl BitXorAssign for EpollFlags
impl BitXorAssign for EpollFlags
Source§fn bitxor_assign(&mut self, other: EpollFlags)
fn bitxor_assign(&mut self, other: EpollFlags)
The bitwise exclusive-or (^) of the bits in two flags values.
Source§impl Clone for EpollFlags
impl Clone for EpollFlags
Source§fn clone(&self) -> EpollFlags
fn clone(&self) -> EpollFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EpollFlags
impl Debug for EpollFlags
Source§impl Extend<EpollFlags> for EpollFlags
impl Extend<EpollFlags> for EpollFlags
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = EpollFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = EpollFlags>,
The bitwise or (|) of the bits in each flags value.
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl Flags for EpollFlags
impl Flags for EpollFlags
Source§const FLAGS: &'static [Flag<EpollFlags>]
const FLAGS: &'static [Flag<EpollFlags>]
Source§fn from_bits_retain(bits: i32) -> EpollFlags
fn from_bits_retain(bits: i32) -> EpollFlags
Source§fn known_bits(&self) -> Self::Bits
fn known_bits(&self) -> Self::Bits
Source§fn unknown_bits(&self) -> Self::Bits
fn unknown_bits(&self) -> Self::Bits
Source§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.Source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
Source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
Source§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
Source§fn iter_defined_names() -> IterDefinedNames<Self>
fn iter_defined_names() -> IterDefinedNames<Self>
Self::FLAGS.Source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in two flags values.Source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!). Read moreSource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in two flags values.Source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in two flags values.Source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!). Read moreSource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in two flags values.Source§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in a flags value, truncating the result.Source§impl FromIterator<EpollFlags> for EpollFlags
impl FromIterator<EpollFlags> for EpollFlags
Source§fn from_iter<T>(iterator: T) -> EpollFlagswhere
T: IntoIterator<Item = EpollFlags>,
fn from_iter<T>(iterator: T) -> EpollFlagswhere
T: IntoIterator<Item = EpollFlags>,
The bitwise or (|) of the bits in each flags value.
Source§impl Hash for EpollFlags
impl Hash for EpollFlags
Source§impl IntoIterator for EpollFlags
impl IntoIterator for EpollFlags
Source§type Item = EpollFlags
type Item = EpollFlags
Source§type IntoIter = Iter<EpollFlags>
type IntoIter = Iter<EpollFlags>
Source§fn into_iter(self) -> <EpollFlags as IntoIterator>::IntoIter
fn into_iter(self) -> <EpollFlags as IntoIterator>::IntoIter
Source§impl LowerHex for EpollFlags
impl LowerHex for EpollFlags
Source§impl Not for EpollFlags
impl Not for EpollFlags
Source§fn not(self) -> EpollFlags
fn not(self) -> EpollFlags
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§type Output = EpollFlags
type Output = EpollFlags
! operator.Source§impl Octal for EpollFlags
impl Octal for EpollFlags
Source§impl Ord for EpollFlags
impl Ord for EpollFlags
Source§fn cmp(&self, other: &EpollFlags) -> Ordering
fn cmp(&self, other: &EpollFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for EpollFlags
impl PartialEq for EpollFlags
Source§impl PartialOrd for EpollFlags
impl PartialOrd for EpollFlags
Source§impl Sub for EpollFlags
impl Sub for EpollFlags
Source§fn sub(self, other: EpollFlags) -> EpollFlags
fn sub(self, other: EpollFlags) -> EpollFlags
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Source§type Output = EpollFlags
type Output = EpollFlags
- operator.Source§impl SubAssign for EpollFlags
impl SubAssign for EpollFlags
Source§fn sub_assign(&mut self, other: EpollFlags)
fn sub_assign(&mut self, other: EpollFlags)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.