pub struct ReadFlag { /* private fields */ }
Implementations
sourceimpl ReadFlag
impl ReadFlag
sourcepub const FORCE_SYNC: ReadFlag = _
pub const FORCE_SYNC: ReadFlag = _
Pretend the next event is a SYN_DROPPED and require the caller to sync
sourcepub fn from_bits(bits: u32) -> Option<ReadFlag>
pub fn from_bits(bits: u32) -> Option<ReadFlag>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> ReadFlag
pub const fn from_bits_truncate(bits: u32) -> ReadFlag
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> ReadFlag
pub const unsafe fn from_bits_unchecked(bits: u32) -> ReadFlag
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: ReadFlag) -> bool
pub const fn intersects(&self, other: ReadFlag) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations
sourceimpl BitAndAssign<ReadFlag> for ReadFlag
impl BitAndAssign<ReadFlag> for ReadFlag
sourcefn bitand_assign(&mut self, other: ReadFlag)
fn bitand_assign(&mut self, other: ReadFlag)
Disables all flags disabled in the set.
sourceimpl BitOrAssign<ReadFlag> for ReadFlag
impl BitOrAssign<ReadFlag> for ReadFlag
sourcefn bitor_assign(&mut self, other: ReadFlag)
fn bitor_assign(&mut self, other: ReadFlag)
Adds the set of flags.
sourceimpl BitXorAssign<ReadFlag> for ReadFlag
impl BitXorAssign<ReadFlag> for ReadFlag
sourcefn bitxor_assign(&mut self, other: ReadFlag)
fn bitxor_assign(&mut self, other: ReadFlag)
Toggles the set of flags.
sourceimpl Extend<ReadFlag> for ReadFlag
impl Extend<ReadFlag> for ReadFlag
sourcefn extend<T: IntoIterator<Item = ReadFlag>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ReadFlag>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<ReadFlag> for ReadFlag
impl FromIterator<ReadFlag> for ReadFlag
sourceimpl Ord for ReadFlag
impl Ord for ReadFlag
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<ReadFlag> for ReadFlag
impl PartialOrd<ReadFlag> for ReadFlag
sourcefn partial_cmp(&self, other: &ReadFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &ReadFlag) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl SubAssign<ReadFlag> for ReadFlag
impl SubAssign<ReadFlag> for ReadFlag
sourcefn sub_assign(&mut self, other: ReadFlag)
fn sub_assign(&mut self, other: ReadFlag)
Disables all flags enabled in the set.
impl Copy for ReadFlag
impl Eq for ReadFlag
impl StructuralEq for ReadFlag
impl StructuralPartialEq for ReadFlag
Auto Trait Implementations
impl RefUnwindSafe for ReadFlag
impl Send for ReadFlag
impl Sync for ReadFlag
impl Unpin for ReadFlag
impl UnwindSafe for ReadFlag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more