Enum swap_buffer_queue::error::TryDequeueError
source · 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
impl Error for TryDequeueError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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
source§fn eq(&self, other: &TryDequeueError) -> bool
fn eq(&self, other: &TryDequeueError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TryDequeueError
impl Eq for TryDequeueError
impl StructuralEq for TryDequeueError
impl StructuralPartialEq for TryDequeueError
Auto Trait Implementations§
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