pub enum TrySendError<T> {
Io(Error),
QueueFull {
item: T,
base: PathBuf,
},
}
Expand description
An error that occurrs when trying to send into a queue.
An underlying IO error occurred.
Fields
The thing that we were trying to send.
The path for the queue where this problem happened.
The queue has reached its maximum capacity and is not open to be sent.
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)?;
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,