Enum dharma::bridge::ReceiveResult [] [src]

pub enum ReceiveResult<T> where
    T: Clone + Send
{ Plain(T), Defined(SignalId, T), Custom(&'static str, T), Any(StringBox<Any + Send>), Special(SpecialCommand), Empty, Timeout, Err, }

Result returned from Receiver::recv, Receiver::try_recv or Receiver::recv_timeout.

Variants

Successful receive with plain variant

Successful receive with defined variant

Successful receive with custom variant

Successful receive with any variant

Successful receive with special variant

Queue was empty.

Wait timed out.

Unknown error.

Methods

impl<T> ReceiveResult<T> where
    T: Clone + Send + PartialEq
[src]

Comparing ReceiveResult. This is needed because Any can not be compared directly.

Returns true if ReceiveResult is Plain with given parameters.

Returns true if ReceiveResult is Defined with given parameters.

Returns true if ReceiveResult is Custom with given parameters.

Returns true if ReceiveResult is Special with given parameters.

Returns true if ReceiveResult is Empty.

Returns true if ReceiveResult is Timeout.

Trait Implementations

impl<T: Debug> Debug for ReceiveResult<T> where
    T: Clone + Send
[src]

Formats the value using the given formatter.