Enum swap_buffer_queue::error::TryEnqueueError
source · pub enum TryEnqueueError<T> {
InsufficientCapacity(T),
Closed(T),
}
Expand description
Error returned by Queue::try_enqueue
.
The value whose enqueuing has failed is embedded within the error.
Variants§
InsufficientCapacity(T)
The queue doesn’t have sufficient capacity to enqueue the give value.
Closed(T)
The queue is closed.
Implementations§
source§impl<T> TryEnqueueError<T>
impl<T> TryEnqueueError<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Returns the value whose enqueuing has failed
Trait Implementations§
source§impl<T: Clone> Clone for TryEnqueueError<T>
impl<T: Clone> Clone for TryEnqueueError<T>
source§fn clone(&self) -> TryEnqueueError<T>
fn clone(&self) -> TryEnqueueError<T>
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<T> Debug for TryEnqueueError<T>
impl<T> Debug for TryEnqueueError<T>
source§impl<T> Display for TryEnqueueError<T>
impl<T> Display for TryEnqueueError<T>
source§impl<T> Error for TryEnqueueError<T>
impl<T> Error for TryEnqueueError<T>
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<T: PartialEq> PartialEq for TryEnqueueError<T>
impl<T: PartialEq> PartialEq for TryEnqueueError<T>
source§fn eq(&self, other: &TryEnqueueError<T>) -> bool
fn eq(&self, other: &TryEnqueueError<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for TryEnqueueError<T>
impl<T: Eq> Eq for TryEnqueueError<T>
impl<T> StructuralEq for TryEnqueueError<T>
impl<T> StructuralPartialEq for TryEnqueueError<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TryEnqueueError<T>where
T: RefUnwindSafe,
impl<T> Send for TryEnqueueError<T>where
T: Send,
impl<T> Sync for TryEnqueueError<T>where
T: Sync,
impl<T> Unpin for TryEnqueueError<T>where
T: Unpin,
impl<T> UnwindSafe for TryEnqueueError<T>where
T: UnwindSafe,
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