pub enum QueueError {
QueueFull,
QueueEmpty,
ChannelDisconnected,
Timeout,
Unsupported(String),
SendFailed(String),
ReceiveFailed(String),
}Expand description
Errors that can occur during queue operations.
Variants§
QueueFull
The queue is full and cannot accept more elements.
QueueEmpty
The queue is empty and has no elements to pop.
ChannelDisconnected
The channel has been disconnected (all senders/receivers dropped).
Timeout
A queue operation timed out.
Unsupported(String)
The requested operation is not supported by this queue type.
SendFailed(String)
Failed to send data through the queue.
ReceiveFailed(String)
Failed to receive data from the queue.
Trait Implementations§
Source§impl Debug for QueueError
impl Debug for QueueError
Source§impl Display for QueueError
impl Display for QueueError
Source§impl Error for QueueError
impl Error for QueueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for QueueError
impl PartialEq for QueueError
Source§fn eq(&self, other: &QueueError) -> bool
fn eq(&self, other: &QueueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueueError
Auto Trait Implementations§
impl Freeze for QueueError
impl RefUnwindSafe for QueueError
impl Send for QueueError
impl Sync for QueueError
impl Unpin for QueueError
impl UnsafeUnpin for QueueError
impl UnwindSafe for QueueError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more