pub struct ReadFlag { /* private fields */ }
Implementations§
Source§impl 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§
Source§impl BitAndAssign for ReadFlag
impl BitAndAssign for ReadFlag
Source§fn bitand_assign(&mut self, other: ReadFlag)
fn bitand_assign(&mut self, other: ReadFlag)
Disables all flags disabled in the set.
Source§impl BitOrAssign for ReadFlag
impl BitOrAssign for ReadFlag
Source§fn bitor_assign(&mut self, other: ReadFlag)
fn bitor_assign(&mut self, other: ReadFlag)
Adds the set of flags.
Source§impl BitXorAssign for ReadFlag
impl BitXorAssign for ReadFlag
Source§fn bitxor_assign(&mut self, other: ReadFlag)
fn bitxor_assign(&mut self, other: ReadFlag)
Toggles the set of flags.
Source§impl Extend<ReadFlag> for ReadFlag
impl Extend<ReadFlag> for ReadFlag
Source§fn 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
Source§fn 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.
Source§fn 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
Source§impl FromIterator<ReadFlag> for ReadFlag
impl FromIterator<ReadFlag> for ReadFlag
Source§impl Ord for ReadFlag
impl Ord for ReadFlag
Source§impl PartialOrd for ReadFlag
impl PartialOrd for ReadFlag
Source§impl SubAssign for ReadFlag
impl SubAssign for ReadFlag
Source§fn 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 StructuralPartialEq for ReadFlag
Auto Trait Implementations§
impl Freeze for ReadFlag
impl RefUnwindSafe for ReadFlag
impl Send for ReadFlag
impl Sync for ReadFlag
impl Unpin for ReadFlag
impl UnwindSafe for ReadFlag
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