pub enum TrySendError<T> {
    Io(Error),
    QueueFull {
        item: T,
        base: PathBuf,
    },
}
Expand description

An error that occurrs when trying to send into a queue.

Variants

Io(Error)

An underlying IO error occurred.

QueueFull

Fields

item: T

The thing that we were trying to send.

base: PathBuf

The path for the queue where this problem happened.

The queue has reached its maximum capacity and is not open to be sent.

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(TrySendError::unwrap_io)?;

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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.

Converts the given value to a String. Read more

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.