Struct UringCmdFlags
pub struct UringCmdFlags(/* private fields */);Expand description
Drapeaux de l’op IORING_OP_URING_CMD (46, Temps 2d) — IORING_URING_CMD_*.
Seul FIXED existe en kernel 6.12 (IORING_URING_CMD_MASK == FIXED).
MULTISHOT est postérieur à 6.12 → hors périmètre.
Implementations§
§impl UringCmdFlags
impl UringCmdFlags
pub const FIXED: UringCmdFlags
pub const FIXED: UringCmdFlags
IORING_URING_CMD_FIXED (bit 0) : la commande utilise un buffer
enregistré (index dans buf_index) comme zone de données associée.
§impl UringCmdFlags
impl UringCmdFlags
pub const fn empty() -> UringCmdFlags
pub const fn empty() -> UringCmdFlags
Get a flags value with all bits unset.
pub const fn all() -> UringCmdFlags
pub const fn all() -> UringCmdFlags
Get a flags value with all known bits set.
pub 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.
pub const fn from_bits(bits: u32) -> Option<UringCmdFlags>
pub const fn from_bits(bits: u32) -> Option<UringCmdFlags>
Convert from a bits value.
This method will return None if any unknown bits are set.
pub const fn from_bits_truncate(bits: u32) -> UringCmdFlags
pub const fn from_bits_truncate(bits: u32) -> UringCmdFlags
Convert from a bits value, unsetting any unknown bits.
pub const fn from_bits_retain(bits: u32) -> UringCmdFlags
pub const fn from_bits_retain(bits: u32) -> UringCmdFlags
Convert from a bits value exactly.
pub fn from_name(name: &str) -> Option<UringCmdFlags>
pub fn from_name(name: &str) -> Option<UringCmdFlags>
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.
pub const fn intersects(&self, other: UringCmdFlags) -> bool
pub const fn intersects(&self, other: UringCmdFlags) -> bool
Whether any set bits in other are also set in self.
pub const fn contains(&self, other: UringCmdFlags) -> bool
pub const fn contains(&self, other: UringCmdFlags) -> bool
Whether all set bits in other are also set in self.
pub fn insert(&mut self, other: UringCmdFlags)
pub fn insert(&mut self, other: UringCmdFlags)
The bitwise or (|) of the bits in self and other.
pub fn remove(&mut self, other: UringCmdFlags)
pub fn remove(&mut self, other: UringCmdFlags)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
pub fn toggle(&mut self, other: UringCmdFlags)
pub fn toggle(&mut self, other: UringCmdFlags)
The bitwise exclusive-or (^) of the bits in self and other.
pub fn set(&mut self, other: UringCmdFlags, value: bool)
pub fn set(&mut self, other: UringCmdFlags, value: bool)
Call insert when value is true or remove when value is false.
pub const fn intersection(self, other: UringCmdFlags) -> UringCmdFlags
pub const fn intersection(self, other: UringCmdFlags) -> UringCmdFlags
The bitwise and (&) of the bits in self and other.
pub const fn union(self, other: UringCmdFlags) -> UringCmdFlags
pub const fn union(self, other: UringCmdFlags) -> UringCmdFlags
The bitwise or (|) of the bits in self and other.
pub const fn difference(self, other: UringCmdFlags) -> UringCmdFlags
pub const fn difference(self, other: UringCmdFlags) -> UringCmdFlags
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
pub const fn symmetric_difference(self, other: UringCmdFlags) -> UringCmdFlags
pub const fn symmetric_difference(self, other: UringCmdFlags) -> UringCmdFlags
The bitwise exclusive-or (^) of the bits in self and other.
pub const fn complement(self) -> UringCmdFlags
pub const fn complement(self) -> UringCmdFlags
The bitwise negation (!) of the bits in self, truncating the result.
§impl UringCmdFlags
impl UringCmdFlags
pub const fn iter(&self) -> Iter<UringCmdFlags>
pub const fn iter(&self) -> Iter<UringCmdFlags>
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.
pub const fn iter_names(&self) -> IterNames<UringCmdFlags>
pub const fn iter_names(&self) -> IterNames<UringCmdFlags>
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§
§impl Binary for UringCmdFlags
impl Binary for UringCmdFlags
§impl BitAnd for UringCmdFlags
impl BitAnd for UringCmdFlags
§fn bitand(self, other: UringCmdFlags) -> UringCmdFlags
fn bitand(self, other: UringCmdFlags) -> UringCmdFlags
The bitwise and (&) of the bits in self and other.
§type Output = UringCmdFlags
type Output = UringCmdFlags
& operator.§impl BitAndAssign for UringCmdFlags
impl BitAndAssign for UringCmdFlags
§fn bitand_assign(&mut self, other: UringCmdFlags)
fn bitand_assign(&mut self, other: UringCmdFlags)
The bitwise and (&) of the bits in self and other.
§impl BitOr for UringCmdFlags
impl BitOr for UringCmdFlags
§fn bitor(self, other: UringCmdFlags) -> UringCmdFlags
fn bitor(self, other: UringCmdFlags) -> UringCmdFlags
The bitwise or (|) of the bits in self and other.
§type Output = UringCmdFlags
type Output = UringCmdFlags
| operator.§impl BitOrAssign for UringCmdFlags
impl BitOrAssign for UringCmdFlags
§fn bitor_assign(&mut self, other: UringCmdFlags)
fn bitor_assign(&mut self, other: UringCmdFlags)
The bitwise or (|) of the bits in self and other.
§impl BitXor for UringCmdFlags
impl BitXor for UringCmdFlags
§fn bitxor(self, other: UringCmdFlags) -> UringCmdFlags
fn bitxor(self, other: UringCmdFlags) -> UringCmdFlags
The bitwise exclusive-or (^) of the bits in self and other.
§type Output = UringCmdFlags
type Output = UringCmdFlags
^ operator.§impl BitXorAssign for UringCmdFlags
impl BitXorAssign for UringCmdFlags
§fn bitxor_assign(&mut self, other: UringCmdFlags)
fn bitxor_assign(&mut self, other: UringCmdFlags)
The bitwise exclusive-or (^) of the bits in self and other.
§impl Clone for UringCmdFlags
impl Clone for UringCmdFlags
§fn clone(&self) -> UringCmdFlags
fn clone(&self) -> UringCmdFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for UringCmdFlags
impl Debug for UringCmdFlags
§impl Default for UringCmdFlags
impl Default for UringCmdFlags
§fn default() -> UringCmdFlags
fn default() -> UringCmdFlags
§impl Extend<UringCmdFlags> for UringCmdFlags
impl Extend<UringCmdFlags> for UringCmdFlags
§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = UringCmdFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = UringCmdFlags>,
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)§impl Flags for UringCmdFlags
impl Flags for UringCmdFlags
§const FLAGS: &'static [Flag<UringCmdFlags>]
const FLAGS: &'static [Flag<UringCmdFlags>]
§fn from_bits_retain(bits: u32) -> UringCmdFlags
fn from_bits_retain(bits: u32) -> UringCmdFlags
§fn known_bits(&self) -> Self::Bits
fn known_bits(&self) -> Self::Bits
§fn unknown_bits(&self) -> Self::Bits
fn unknown_bits(&self) -> Self::Bits
§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
§fn iter_defined_names() -> IterDefinedNames<Self>
fn iter_defined_names() -> IterDefinedNames<Self>
Self::FLAGS].§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in self and other.§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in self and other.§fn set(&mut self, other: Self, value: bool)where
Self: Sized,
fn set(&mut self, other: Self, value: bool)where
Self: Sized,
Flags::insert] when value is true or [Flags::remove] when value is false.§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in self and other.§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in self and other.§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in self, truncating the result.§impl FromIterator<UringCmdFlags> for UringCmdFlags
impl FromIterator<UringCmdFlags> for UringCmdFlags
§fn from_iter<T>(iterator: T) -> UringCmdFlagswhere
T: IntoIterator<Item = UringCmdFlags>,
fn from_iter<T>(iterator: T) -> UringCmdFlagswhere
T: IntoIterator<Item = UringCmdFlags>,
The bitwise or (|) of the bits in each flags value.
§impl Hash for UringCmdFlags
impl Hash for UringCmdFlags
§impl IntoIterator for UringCmdFlags
impl IntoIterator for UringCmdFlags
§type Item = UringCmdFlags
type Item = UringCmdFlags
§type IntoIter = Iter<UringCmdFlags>
type IntoIter = Iter<UringCmdFlags>
§fn into_iter(self) -> <UringCmdFlags as IntoIterator>::IntoIter
fn into_iter(self) -> <UringCmdFlags as IntoIterator>::IntoIter
§impl LowerHex for UringCmdFlags
impl LowerHex for UringCmdFlags
§impl Not for UringCmdFlags
impl Not for UringCmdFlags
§fn not(self) -> UringCmdFlags
fn not(self) -> UringCmdFlags
The bitwise negation (!) of the bits in self, truncating the result.
§type Output = UringCmdFlags
type Output = UringCmdFlags
! operator.§impl Octal for UringCmdFlags
impl Octal for UringCmdFlags
§impl PartialEq for UringCmdFlags
impl PartialEq for UringCmdFlags
§impl Sub for UringCmdFlags
impl Sub for UringCmdFlags
§fn sub(self, other: UringCmdFlags) -> UringCmdFlags
fn sub(self, other: UringCmdFlags) -> UringCmdFlags
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
§type Output = UringCmdFlags
type Output = UringCmdFlags
- operator.§impl SubAssign for UringCmdFlags
impl SubAssign for UringCmdFlags
§fn sub_assign(&mut self, other: UringCmdFlags)
fn sub_assign(&mut self, other: UringCmdFlags)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.