pub struct IoringMsgringFlags(/* private fields */);Expand description
IORING_MSG_RING_* flags for use with io_uring_sqe.
Implementations§
Source§impl IoringMsgringFlags
impl IoringMsgringFlags
Sourcepub const CQE_SKIP: IoringMsgringFlags
pub const CQE_SKIP: IoringMsgringFlags
IORING_MSG_RING_CQE_SKIP
Sourcepub const FLAGS_PASS: IoringMsgringFlags
pub const FLAGS_PASS: IoringMsgringFlags
IORING_MSG_RING_FLAGS_PASS
Source§impl IoringMsgringFlags
impl IoringMsgringFlags
Sourcepub const fn empty() -> IoringMsgringFlags
pub const fn empty() -> IoringMsgringFlags
Get a flags value with all bits unset.
Sourcepub const fn all() -> IoringMsgringFlags
pub const fn all() -> IoringMsgringFlags
Get a flags value with all known bits set.
Sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u32) -> Option<IoringMsgringFlags>
pub const fn from_bits(bits: u32) -> Option<IoringMsgringFlags>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u32) -> IoringMsgringFlags
pub const fn from_bits_truncate(bits: u32) -> IoringMsgringFlags
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u32) -> IoringMsgringFlags
pub const fn from_bits_retain(bits: u32) -> IoringMsgringFlags
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<IoringMsgringFlags>
pub fn from_name(name: &str) -> Option<IoringMsgringFlags>
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: IoringMsgringFlags) -> bool
pub const fn intersects(&self, other: IoringMsgringFlags) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: IoringMsgringFlags) -> bool
pub const fn contains(&self, other: IoringMsgringFlags) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn insert(&mut self, other: IoringMsgringFlags)
pub fn insert(&mut self, other: IoringMsgringFlags)
The bitwise or (|) of the bits in two flags values.
Sourcepub fn remove(&mut self, other: IoringMsgringFlags)
pub fn remove(&mut self, other: IoringMsgringFlags)
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: IoringMsgringFlags)
pub fn toggle(&mut self, other: IoringMsgringFlags)
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub fn set(&mut self, other: IoringMsgringFlags, value: bool)
pub fn set(&mut self, other: IoringMsgringFlags, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(self, other: IoringMsgringFlags) -> IoringMsgringFlags
pub const fn intersection(self, other: IoringMsgringFlags) -> IoringMsgringFlags
The bitwise and (&) of the bits in two flags values.
Sourcepub const fn union(self, other: IoringMsgringFlags) -> IoringMsgringFlags
pub const fn union(self, other: IoringMsgringFlags) -> IoringMsgringFlags
The bitwise or (|) of the bits in two flags values.
Sourcepub const fn difference(self, other: IoringMsgringFlags) -> IoringMsgringFlags
pub const fn difference(self, other: IoringMsgringFlags) -> IoringMsgringFlags
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: IoringMsgringFlags,
) -> IoringMsgringFlags
pub const fn symmetric_difference( self, other: IoringMsgringFlags, ) -> IoringMsgringFlags
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub const fn complement(self) -> IoringMsgringFlags
pub const fn complement(self) -> IoringMsgringFlags
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§impl IoringMsgringFlags
impl IoringMsgringFlags
Sourcepub const fn iter(&self) -> Iter<IoringMsgringFlags>
pub const fn iter(&self) -> Iter<IoringMsgringFlags>
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<IoringMsgringFlags>
pub const fn iter_names(&self) -> IterNames<IoringMsgringFlags>
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 IoringMsgringFlags
impl Binary for IoringMsgringFlags
Source§impl BitAnd for IoringMsgringFlags
impl BitAnd for IoringMsgringFlags
Source§fn bitand(self, other: IoringMsgringFlags) -> IoringMsgringFlags
fn bitand(self, other: IoringMsgringFlags) -> IoringMsgringFlags
The bitwise and (&) of the bits in two flags values.
Source§type Output = IoringMsgringFlags
type Output = IoringMsgringFlags
& operator.Source§impl BitAndAssign for IoringMsgringFlags
impl BitAndAssign for IoringMsgringFlags
Source§fn bitand_assign(&mut self, other: IoringMsgringFlags)
fn bitand_assign(&mut self, other: IoringMsgringFlags)
The bitwise and (&) of the bits in two flags values.
Source§impl BitOr for IoringMsgringFlags
impl BitOr for IoringMsgringFlags
Source§fn bitor(self, other: IoringMsgringFlags) -> IoringMsgringFlags
fn bitor(self, other: IoringMsgringFlags) -> IoringMsgringFlags
The bitwise or (|) of the bits in two flags values.
Source§type Output = IoringMsgringFlags
type Output = IoringMsgringFlags
| operator.Source§impl BitOrAssign for IoringMsgringFlags
impl BitOrAssign for IoringMsgringFlags
Source§fn bitor_assign(&mut self, other: IoringMsgringFlags)
fn bitor_assign(&mut self, other: IoringMsgringFlags)
The bitwise or (|) of the bits in two flags values.
Source§impl BitXor for IoringMsgringFlags
impl BitXor for IoringMsgringFlags
Source§fn bitxor(self, other: IoringMsgringFlags) -> IoringMsgringFlags
fn bitxor(self, other: IoringMsgringFlags) -> IoringMsgringFlags
The bitwise exclusive-or (^) of the bits in two flags values.
Source§type Output = IoringMsgringFlags
type Output = IoringMsgringFlags
^ operator.Source§impl BitXorAssign for IoringMsgringFlags
impl BitXorAssign for IoringMsgringFlags
Source§fn bitxor_assign(&mut self, other: IoringMsgringFlags)
fn bitxor_assign(&mut self, other: IoringMsgringFlags)
The bitwise exclusive-or (^) of the bits in two flags values.
Source§impl Clone for IoringMsgringFlags
impl Clone for IoringMsgringFlags
Source§fn clone(&self) -> IoringMsgringFlags
fn clone(&self) -> IoringMsgringFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IoringMsgringFlags
impl Debug for IoringMsgringFlags
Source§impl Default for IoringMsgringFlags
impl Default for IoringMsgringFlags
Source§fn default() -> IoringMsgringFlags
fn default() -> IoringMsgringFlags
Source§impl Extend<IoringMsgringFlags> for IoringMsgringFlags
impl Extend<IoringMsgringFlags> for IoringMsgringFlags
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = IoringMsgringFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = IoringMsgringFlags>,
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 IoringMsgringFlags
impl Flags for IoringMsgringFlags
Source§const FLAGS: &'static [Flag<IoringMsgringFlags>]
const FLAGS: &'static [Flag<IoringMsgringFlags>]
Source§fn from_bits_retain(bits: u32) -> IoringMsgringFlags
fn from_bits_retain(bits: u32) -> IoringMsgringFlags
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<IoringMsgringFlags> for IoringMsgringFlags
impl FromIterator<IoringMsgringFlags> for IoringMsgringFlags
Source§fn from_iter<T>(iterator: T) -> IoringMsgringFlagswhere
T: IntoIterator<Item = IoringMsgringFlags>,
fn from_iter<T>(iterator: T) -> IoringMsgringFlagswhere
T: IntoIterator<Item = IoringMsgringFlags>,
The bitwise or (|) of the bits in each flags value.
Source§impl Hash for IoringMsgringFlags
impl Hash for IoringMsgringFlags
Source§impl IntoIterator for IoringMsgringFlags
impl IntoIterator for IoringMsgringFlags
Source§type Item = IoringMsgringFlags
type Item = IoringMsgringFlags
Source§type IntoIter = Iter<IoringMsgringFlags>
type IntoIter = Iter<IoringMsgringFlags>
Source§fn into_iter(self) -> <IoringMsgringFlags as IntoIterator>::IntoIter
fn into_iter(self) -> <IoringMsgringFlags as IntoIterator>::IntoIter
Source§impl LowerHex for IoringMsgringFlags
impl LowerHex for IoringMsgringFlags
Source§impl Not for IoringMsgringFlags
impl Not for IoringMsgringFlags
Source§fn not(self) -> IoringMsgringFlags
fn not(self) -> IoringMsgringFlags
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§type Output = IoringMsgringFlags
type Output = IoringMsgringFlags
! operator.Source§impl Octal for IoringMsgringFlags
impl Octal for IoringMsgringFlags
Source§impl PartialEq for IoringMsgringFlags
impl PartialEq for IoringMsgringFlags
Source§impl Sub for IoringMsgringFlags
impl Sub for IoringMsgringFlags
Source§fn sub(self, other: IoringMsgringFlags) -> IoringMsgringFlags
fn sub(self, other: IoringMsgringFlags) -> IoringMsgringFlags
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 = IoringMsgringFlags
type Output = IoringMsgringFlags
- operator.Source§impl SubAssign for IoringMsgringFlags
impl SubAssign for IoringMsgringFlags
Source§fn sub_assign(&mut self, other: IoringMsgringFlags)
fn sub_assign(&mut self, other: IoringMsgringFlags)
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.