Enum any_mpsc::AnyRecvError[][src]

pub enum AnyRecvError {
    RecvError(RecvError),
    RecvTimeoutError(RecvTimeoutError),
    TryRecvError(TryRecvError),
    WrongType(Box<dyn Any>),
}
Expand description

Error type for receievers. If an mpsc error occurs, it will be wrapped by an appropriate wrapper variant. If receiver is supplied an incorrect type, a [AnyRecvError::WrongType(Box)] will be returned containing the result that did not successfully downcast.

Variants

RecvError(RecvError)
RecvTimeoutError(RecvTimeoutError)
TryRecvError(TryRecvError)
WrongType(Box<dyn Any>)

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.