pub enum Steal {
Success(StealResult),
Empty,
Retry,
}Expand description
Outcome of SharedDequeKhpd::steal_line.
Variants§
Success(StealResult)
Got a publication line; carries up to LINE_ITEMS items.
Empty
Ring was empty (head >= tail).
Retry
Lost the CAS race on head to a competing thief, or the
publisher has not finished writing this line yet.
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