Struct SetupFlags
pub struct SetupFlags(/* private fields */);Expand description
Flags de io_uring_setup(2) (axe A, 17 flags en 6.12).
Appliqués via IoUringBuilder. Deux flags de l’axe A ne figurent pas
ici car exposés par des méthodes du builder : CQSIZE
(with_completion_queue_entries) et ATTACH_WQ (attach_work_queue).
Implementations§
§impl SetupFlags
impl SetupFlags
pub const IOPOLL: SetupFlags
pub const IOPOLL: SetupFlags
IORING_SETUP_IOPOLL : polling I/O (stockage O_DIRECT).
pub const SQPOLL: SetupFlags
pub const SQPOLL: SetupFlags
IORING_SETUP_SQPOLL : thread kernel de poll de la SQ (Temps 3e).
pub const SQ_AFF: SetupFlags
pub const SQ_AFF: SetupFlags
IORING_SETUP_SQ_AFF : affinité CPU du thread SQPOLL.
pub const CLAMP: SetupFlags
pub const CLAMP: SetupFlags
IORING_SETUP_CLAMP : borne entries aux limites kernel.
pub const R_DISABLED: SetupFlags
pub const R_DISABLED: SetupFlags
IORING_SETUP_R_DISABLED : ring créé désactivé (primitive sandbox, Temps 3f).
pub const SUBMIT_ALL: SetupFlags
pub const SUBMIT_ALL: SetupFlags
IORING_SETUP_SUBMIT_ALL : ne pas s’arrêter à la première erreur de soumission.
pub const COOP_TASKRUN: SetupFlags
pub const COOP_TASKRUN: SetupFlags
IORING_SETUP_COOP_TASKRUN : task-work coopératif (moins d’IPI).
pub const TASKRUN_FLAG: SetupFlags
pub const TASKRUN_FLAG: SetupFlags
IORING_SETUP_TASKRUN_FLAG : signale le task-work en attente via un flag d’anneau.
pub const SQE128: SetupFlags
pub const SQE128: SetupFlags
IORING_SETUP_SQE128 : SQE de 128 octets (requis pour URING_CMD large).
pub const CQE32: SetupFlags
pub const CQE32: SetupFlags
IORING_SETUP_CQE32 : CQE de 32 octets (complétions étendues).
pub const SINGLE_ISSUER: SetupFlags
pub const SINGLE_ISSUER: SetupFlags
IORING_SETUP_SINGLE_ISSUER : un seul thread soumetteur (recommandé Air).
pub const DEFER_TASKRUN: SetupFlags
pub const DEFER_TASKRUN: SetupFlags
IORING_SETUP_DEFER_TASKRUN : task-work différé à GETEVENTS (latence basse).
pub const NO_MMAP: SetupFlags
pub const NO_MMAP: SetupFlags
IORING_SETUP_NO_MMAP : mémoire des anneaux fournie par l’appelant (avancé, gated).
pub const REGISTERED_FD_ONLY: SetupFlags
pub const REGISTERED_FD_ONLY: SetupFlags
IORING_SETUP_REGISTERED_FD_ONLY : ring fd uniquement enregistré.
pub const NO_SQARRAY: SetupFlags
pub const NO_SQARRAY: SetupFlags
IORING_SETUP_NO_SQARRAY : supprime l’indirection du tableau d’index SQ.
§impl SetupFlags
impl SetupFlags
pub const fn empty() -> SetupFlags
pub const fn empty() -> SetupFlags
Get a flags value with all bits unset.
pub const fn all() -> SetupFlags
pub const fn all() -> SetupFlags
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<SetupFlags>
pub const fn from_bits(bits: u32) -> Option<SetupFlags>
Convert from a bits value.
This method will return None if any unknown bits are set.
pub const fn from_bits_truncate(bits: u32) -> SetupFlags
pub const fn from_bits_truncate(bits: u32) -> SetupFlags
Convert from a bits value, unsetting any unknown bits.
pub const fn from_bits_retain(bits: u32) -> SetupFlags
pub const fn from_bits_retain(bits: u32) -> SetupFlags
Convert from a bits value exactly.
pub fn from_name(name: &str) -> Option<SetupFlags>
pub fn from_name(name: &str) -> Option<SetupFlags>
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: SetupFlags) -> bool
pub const fn intersects(&self, other: SetupFlags) -> bool
Whether any set bits in other are also set in self.
pub const fn contains(&self, other: SetupFlags) -> bool
pub const fn contains(&self, other: SetupFlags) -> bool
Whether all set bits in other are also set in self.
pub fn insert(&mut self, other: SetupFlags)
pub fn insert(&mut self, other: SetupFlags)
The bitwise or (|) of the bits in self and other.
pub fn remove(&mut self, other: SetupFlags)
pub fn remove(&mut self, other: SetupFlags)
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: SetupFlags)
pub fn toggle(&mut self, other: SetupFlags)
The bitwise exclusive-or (^) of the bits in self and other.
pub fn set(&mut self, other: SetupFlags, value: bool)
pub fn set(&mut self, other: SetupFlags, value: bool)
Call insert when value is true or remove when value is false.
pub const fn intersection(self, other: SetupFlags) -> SetupFlags
pub const fn intersection(self, other: SetupFlags) -> SetupFlags
The bitwise and (&) of the bits in self and other.
pub const fn union(self, other: SetupFlags) -> SetupFlags
pub const fn union(self, other: SetupFlags) -> SetupFlags
The bitwise or (|) of the bits in self and other.
pub const fn difference(self, other: SetupFlags) -> SetupFlags
pub const fn difference(self, other: SetupFlags) -> SetupFlags
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: SetupFlags) -> SetupFlags
pub const fn symmetric_difference(self, other: SetupFlags) -> SetupFlags
The bitwise exclusive-or (^) of the bits in self and other.
pub const fn complement(self) -> SetupFlags
pub const fn complement(self) -> SetupFlags
The bitwise negation (!) of the bits in self, truncating the result.
§impl SetupFlags
impl SetupFlags
pub const fn iter(&self) -> Iter<SetupFlags>
pub const fn iter(&self) -> Iter<SetupFlags>
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<SetupFlags>
pub const fn iter_names(&self) -> IterNames<SetupFlags>
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 SetupFlags
impl Binary for SetupFlags
§impl BitAnd for SetupFlags
impl BitAnd for SetupFlags
§fn bitand(self, other: SetupFlags) -> SetupFlags
fn bitand(self, other: SetupFlags) -> SetupFlags
The bitwise and (&) of the bits in self and other.
§type Output = SetupFlags
type Output = SetupFlags
& operator.§impl BitAndAssign for SetupFlags
impl BitAndAssign for SetupFlags
§fn bitand_assign(&mut self, other: SetupFlags)
fn bitand_assign(&mut self, other: SetupFlags)
The bitwise and (&) of the bits in self and other.
§impl BitOr for SetupFlags
impl BitOr for SetupFlags
§fn bitor(self, other: SetupFlags) -> SetupFlags
fn bitor(self, other: SetupFlags) -> SetupFlags
The bitwise or (|) of the bits in self and other.
§type Output = SetupFlags
type Output = SetupFlags
| operator.§impl BitOrAssign for SetupFlags
impl BitOrAssign for SetupFlags
§fn bitor_assign(&mut self, other: SetupFlags)
fn bitor_assign(&mut self, other: SetupFlags)
The bitwise or (|) of the bits in self and other.
§impl BitXor for SetupFlags
impl BitXor for SetupFlags
§fn bitxor(self, other: SetupFlags) -> SetupFlags
fn bitxor(self, other: SetupFlags) -> SetupFlags
The bitwise exclusive-or (^) of the bits in self and other.
§type Output = SetupFlags
type Output = SetupFlags
^ operator.§impl BitXorAssign for SetupFlags
impl BitXorAssign for SetupFlags
§fn bitxor_assign(&mut self, other: SetupFlags)
fn bitxor_assign(&mut self, other: SetupFlags)
The bitwise exclusive-or (^) of the bits in self and other.
§impl Clone for SetupFlags
impl Clone for SetupFlags
§fn clone(&self) -> SetupFlags
fn clone(&self) -> SetupFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for SetupFlags
impl Debug for SetupFlags
§impl Extend<SetupFlags> for SetupFlags
impl Extend<SetupFlags> for SetupFlags
§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = SetupFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = SetupFlags>,
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 SetupFlags
impl Flags for SetupFlags
§const FLAGS: &'static [Flag<SetupFlags>]
const FLAGS: &'static [Flag<SetupFlags>]
§fn from_bits_retain(bits: u32) -> SetupFlags
fn from_bits_retain(bits: u32) -> SetupFlags
§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<SetupFlags> for SetupFlags
impl FromIterator<SetupFlags> for SetupFlags
§fn from_iter<T>(iterator: T) -> SetupFlagswhere
T: IntoIterator<Item = SetupFlags>,
fn from_iter<T>(iterator: T) -> SetupFlagswhere
T: IntoIterator<Item = SetupFlags>,
The bitwise or (|) of the bits in each flags value.
§impl IntoIterator for SetupFlags
impl IntoIterator for SetupFlags
§type Item = SetupFlags
type Item = SetupFlags
§type IntoIter = Iter<SetupFlags>
type IntoIter = Iter<SetupFlags>
§fn into_iter(self) -> <SetupFlags as IntoIterator>::IntoIter
fn into_iter(self) -> <SetupFlags as IntoIterator>::IntoIter
§impl LowerHex for SetupFlags
impl LowerHex for SetupFlags
§impl Not for SetupFlags
impl Not for SetupFlags
§fn not(self) -> SetupFlags
fn not(self) -> SetupFlags
The bitwise negation (!) of the bits in self, truncating the result.
§type Output = SetupFlags
type Output = SetupFlags
! operator.§impl Octal for SetupFlags
impl Octal for SetupFlags
§impl PartialEq for SetupFlags
impl PartialEq for SetupFlags
§impl Sub for SetupFlags
impl Sub for SetupFlags
§fn sub(self, other: SetupFlags) -> SetupFlags
fn sub(self, other: SetupFlags) -> SetupFlags
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 = SetupFlags
type Output = SetupFlags
- operator.§impl SubAssign for SetupFlags
impl SubAssign for SetupFlags
§fn sub_assign(&mut self, other: SetupFlags)
fn sub_assign(&mut self, other: SetupFlags)
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.