pub enum QueueError<E> {
NotReady,
InvalidConfiguration(QueueConfigError),
ResetRace {
operation: QueueEpoch,
current: QueueEpoch,
},
UsedLengthExceeded {
used: UsedLength,
capacity: u64,
},
Transport(E),
}Expand description
Portable queue operation failure.
Variants§
NotReady
The queue is not configured and ready for the requested operation.
InvalidConfiguration(QueueConfigError)
The queue configuration is invalid.
ResetRace
An operation belongs to a different reset epoch.
Fields
§
operation: QueueEpochEpoch carried by the operation.
§
current: QueueEpochCurrent queue epoch.
UsedLengthExceeded
Completion used length exceeds writable chain capacity.
Fields
§
used: UsedLengthAttempted used length.
Transport(E)
Concrete transport failure.
Trait Implementations§
Source§impl<E: Clone> Clone for QueueError<E>
impl<E: Clone> Clone for QueueError<E>
Source§fn clone(&self) -> QueueError<E>
fn clone(&self) -> QueueError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<E: Copy> Copy for QueueError<E>
Source§impl<E: Debug> Debug for QueueError<E>
impl<E: Debug> Debug for QueueError<E>
impl<E: Eq> Eq for QueueError<E>
Source§impl<E: PartialEq> PartialEq for QueueError<E>
impl<E: PartialEq> PartialEq for QueueError<E>
impl<E: PartialEq> StructuralPartialEq for QueueError<E>
Auto Trait Implementations§
impl<E> Freeze for QueueError<E>where
E: Freeze,
impl<E> RefUnwindSafe for QueueError<E>where
E: RefUnwindSafe,
impl<E> Send for QueueError<E>where
E: Send,
impl<E> Sync for QueueError<E>where
E: Sync,
impl<E> Unpin for QueueError<E>where
E: Unpin,
impl<E> UnsafeUnpin for QueueError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for QueueError<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