pub enum RequeueOp {
Abort,
UnparkOneRequeueRest,
RequeueAll,
UnparkOne,
RequeueOne,
}
Expand description
Operation that unpark_requeue
should perform.
Variants§
Abort
Abort the operation without doing anything.
UnparkOneRequeueRest
Unpark one thread and requeue the rest onto the target queue.
RequeueAll
Requeue all threads onto the target queue.
UnparkOne
Unpark one thread and leave the rest parked. No requeuing is done.
RequeueOne
Requeue one thread and leave the rest parked on the original queue.
Trait Implementations§
impl Copy for RequeueOp
impl Eq for RequeueOp
impl StructuralPartialEq for RequeueOp
Auto Trait Implementations§
impl Freeze for RequeueOp
impl RefUnwindSafe for RequeueOp
impl Send for RequeueOp
impl Sync for RequeueOp
impl Unpin for RequeueOp
impl UnwindSafe for RequeueOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Abort
: 0 bytesUnparkOneRequeueRest
: 0 bytesRequeueAll
: 0 bytesUnparkOne
: 0 bytesRequeueOne
: 0 bytes