pub enum TryRecvError {
    Io(Error),
    QueueEmpty,
}
Expand description

An error that occurs when trying to receive from an empty queue.

Variants

Io(Error)

An underlying IO error occurred.

QueueEmpty

The queue is empty and there is nothing to be received right now.

Implementations

Tries to unwrap the IO error. If not able to, panics. You can use the following pattern in your code:

queue.try_send(b"some stuff").map_err(TryRecvError::unwrap_io)?;

Trait Implementations

Performs the conversion.

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.