Enum std::sync::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: Show> Show for Stolen<T>

fn fmt<T: Show>(&self, __arg_0: &mut Formatter) -> Result<(), FormatError>

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

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

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

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