Enum deque::Stolen [] [src]

pub enum Stolen<T> {
    Empty,
    Abort,
    Data(T),
}

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

The stealer has successfully stolen some data.

Trait Implementations

Derived Implementations

impl<T: Debug> Debug for Stolen<T>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<T: PartialEq> PartialEq for Stolen<T>

fn eq(&self, __arg_0: &Stolen<T>) -> bool

fn ne(&self, __arg_0: &Stolen<T>) -> bool