pub enum Steal<T> {
Empty,
Data(T),
Retry,
}
Expand description
Possible outcomes of a steal operation.
Variants§
Empty
The deque was empty at the time of stealing.
Data(T)
Some data has been successfully stolen.
Retry
Lost the race for stealing data to another concurrent steal or pop operation. Try again.
Trait Implementations§
source§impl<T> Ord for Steal<T>where
T: Ord,
impl<T> Ord for Steal<T>where
T: Ord,
source§impl<T> PartialEq<Steal<T>> for Steal<T>where
T: PartialEq<T>,
impl<T> PartialEq<Steal<T>> for Steal<T>where
T: PartialEq<T>,
source§impl<T> PartialOrd<Steal<T>> for Steal<T>where
T: PartialOrd<T>,
impl<T> PartialOrd<Steal<T>> for Steal<T>where
T: PartialOrd<T>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more