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(T)

The stealer has successfully stolen some data.

Trait Implementations

impl<T: Debug> Debug for Stolen<T>
[src]

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

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for Stolen<T>
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.