pub enum Stolen<T> {
Empty,
Abort,
Data(T),
}Expand description
When stealing some data, this is an enumeration of the possible outcomes.
Variants§
Empty
The deque was empty at the time of stealing
Abort
The stealer lost the race for stealing data, and a retry may return more data.
Data(T)
The stealer has successfully stolen some data.
Trait Implementations§
impl<T> StructuralPartialEq for Stolen<T>
Auto Trait Implementations§
impl<T> Freeze for Stolen<T>where
T: Freeze,
impl<T> RefUnwindSafe for Stolen<T>where
T: RefUnwindSafe,
impl<T> Send for Stolen<T>where
T: Send,
impl<T> Sync for Stolen<T>where
T: Sync,
impl<T> Unpin for Stolen<T>where
T: Unpin,
impl<T> UnwindSafe for Stolen<T>where
T: UnwindSafe,
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