pub enum TryDequeueError {
Empty,
Pending,
Closed,
Conflict,
}
Expand description
Error returned by Queue::try_dequeue
.
Variants§
Empty
The queue is empty.
Pending
There is a concurrent enqueuing that need to end before dequeuing.
Closed
The queue is closed.
Conflict
The queue is concurrently dequeued.
Trait Implementations§
Source§impl Clone for TryDequeueError
impl Clone for TryDequeueError
Source§fn clone(&self) -> TryDequeueError
fn clone(&self) -> TryDequeueError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TryDequeueError
impl Debug for TryDequeueError
Source§impl Display for TryDequeueError
impl Display for TryDequeueError
Source§impl Error for TryDequeueError
Available on crate feature std
only.
impl Error for TryDequeueError
Available on crate feature
std
only.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 TryDequeueError
impl PartialEq for TryDequeueError
impl Copy for TryDequeueError
impl Eq for TryDequeueError
impl StructuralPartialEq for TryDequeueError
Auto Trait Implementations§
impl Freeze for TryDequeueError
impl RefUnwindSafe for TryDequeueError
impl Send for TryDequeueError
impl Sync for TryDequeueError
impl Unpin for TryDequeueError
impl UnwindSafe for TryDequeueError
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