pub enum Steal {
Success(StealResult),
Empty,
Retry,
}Expand description
Outcome of SharedDequeLoh::steal.
Variants§
Success(StealResult)
Got a slot’s payload.
Empty
Ring empty (no published item past head).
Retry
CAS lost to a competing thief, or the publisher’s Release on the sequence number is missing from the slot snapshot; outer loop should retry.
Trait Implementations§
impl Copy for Steal
impl Eq for Steal
impl StructuralPartialEq for Steal
Auto Trait Implementations§
impl Freeze for Steal
impl RefUnwindSafe for Steal
impl Send for Steal
impl Sync for Steal
impl Unpin for Steal
impl UnsafeUnpin for Steal
impl UnwindSafe for Steal
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