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>
Available on crate feature std
only.
impl<T> Error for TryEnqueueError<T>
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<T: PartialEq> PartialEq for TryEnqueueError<T>
impl<T: PartialEq> PartialEq for TryEnqueueError<T>
impl<T: Copy> Copy for TryEnqueueError<T>
impl<T: Eq> Eq for TryEnqueueError<T>
impl<T> StructuralPartialEq for TryEnqueueError<T>
Auto Trait Implementations§
impl<T> Freeze for TryEnqueueError<T>where
T: Freeze,
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