pub enum FixedSlotTarget {
Index(u32),
Alloc,
}Expand description
Cible d’un slot pour une variante « direct » : indice précis, ou auto-allocation par le kernel.
FixedSlotTarget::Alloc est un enum typé, jamais la sentinelle
kernel IORING_FILE_INDEX_ALLOC (~0U) exposée (ADR-021 conv. 1).
Variants§
Index(u32)
Slot précis (l’indice exact dans la table de FD fixes).
Alloc
Le kernel choisit un slot libre (dans la plage d’set_alloc_range) et le
rend dans cqe->res (Completion::allocated_slot) ; -ENFILE si plein.
Trait Implementations§
Source§impl Clone for FixedSlotTarget
impl Clone for FixedSlotTarget
Source§fn clone(&self) -> FixedSlotTarget
fn clone(&self) -> FixedSlotTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FixedSlotTarget
impl Debug for FixedSlotTarget
Source§impl PartialEq for FixedSlotTarget
impl PartialEq for FixedSlotTarget
impl Copy for FixedSlotTarget
impl Eq for FixedSlotTarget
impl StructuralPartialEq for FixedSlotTarget
Auto Trait Implementations§
impl Freeze for FixedSlotTarget
impl RefUnwindSafe for FixedSlotTarget
impl Send for FixedSlotTarget
impl Sync for FixedSlotTarget
impl Unpin for FixedSlotTarget
impl UnsafeUnpin for FixedSlotTarget
impl UnwindSafe for FixedSlotTarget
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