pub enum NetQueueError<E> {
InvalidInsertion,
InvalidInsertionKnown(String),
ItemDeletionFail,
InvalidItem,
EmptyQueue,
Other(E),
}
Variants§
InvalidInsertion
The insertion failed for any given reason.
InvalidInsertionKnown(String)
The insertion failed and the reason is known.
ItemDeletionFail
The Item
failed to be removed from the queue.
InvalidItem
The Item
is invalid and can not be retrieved.
EmptyQueue
The queue is empty.
Other(E)
The error is a custom error.
Trait Implementations§
Source§impl<E: Clone> Clone for NetQueueError<E>
impl<E: Clone> Clone for NetQueueError<E>
Source§fn clone(&self) -> NetQueueError<E>
fn clone(&self) -> NetQueueError<E>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<E> Freeze for NetQueueError<E>where
E: Freeze,
impl<E> RefUnwindSafe for NetQueueError<E>where
E: RefUnwindSafe,
impl<E> Send for NetQueueError<E>where
E: Send,
impl<E> Sync for NetQueueError<E>where
E: Sync,
impl<E> Unpin for NetQueueError<E>where
E: Unpin,
impl<E> UnwindSafe for NetQueueError<E>where
E: 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