pub enum QueuePushOutcome<T> {
Enqueued,
Coalesced {
replaced: usize,
},
DroppedStale {
dropped: usize,
},
Rejected {
item: T,
rejection: QueuePushRejection,
},
}Expand description
Identifies the queue push outcome state.
Variants§
Enqueued
Represents the enqueued case.
Coalesced
Represents the coalesced case.
DroppedStale
Represents the dropped stale case.
Rejected
The item was not accepted and is returned to the caller unchanged.
Fields
§
item: TThe submitted item.
§
rejection: QueuePushRejectionThe source-free normal rejection reason.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for QueuePushOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for QueuePushOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for QueuePushOutcome<T>where
T: Send,
impl<T> Sync for QueuePushOutcome<T>where
T: Sync,
impl<T> Unpin for QueuePushOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for QueuePushOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for QueuePushOutcome<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