pub enum CancelTarget<'fd> {
Token(SubmissionToken),
Fd(BorrowedFd<'fd>),
Op(IoUringOpcode),
Any,
}Expand description
Cible d’une annulation synchrone (IoUring::sync_cancel).
Mappée sur les flags IORING_ASYNC_CANCEL_*. Le paramètre de durée de vie
'fd borne l’emprunt du descripteur ciblé par CancelTarget::Fd.
Variants§
Token(SubmissionToken)
Annule l’opération identifiée par ce jeton (flag USERDATA).
Fd(BorrowedFd<'fd>)
Annule toutes les opérations portant sur ce descripteur (flag FD).
Op(IoUringOpcode)
Annule toutes les opérations de cet opcode (flag OP).
Any
Annule toutes les opérations en vol (flag ANY).
Trait Implementations§
Source§impl<'fd> Clone for CancelTarget<'fd>
impl<'fd> Clone for CancelTarget<'fd>
Source§fn clone(&self) -> CancelTarget<'fd>
fn clone(&self) -> CancelTarget<'fd>
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<'fd> Debug for CancelTarget<'fd>
impl<'fd> Debug for CancelTarget<'fd>
impl<'fd> Copy for CancelTarget<'fd>
Auto Trait Implementations§
impl<'fd> Freeze for CancelTarget<'fd>
impl<'fd> RefUnwindSafe for CancelTarget<'fd>
impl<'fd> Send for CancelTarget<'fd>
impl<'fd> Sync for CancelTarget<'fd>
impl<'fd> Unpin for CancelTarget<'fd>
impl<'fd> UnsafeUnpin for CancelTarget<'fd>
impl<'fd> UnwindSafe for CancelTarget<'fd>
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