#[non_exhaustive]pub enum EnqueueResult {
Enqueued,
DroppedNewest,
Rejected,
}Expand description
Push result for enqueue attempts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enqueued
Item was enqueued successfully.
DroppedNewest
Item was dropped per policy (DropNewest).
Rejected
Item could not be enqueued due to backpressure or full capacity.
Trait Implementations§
Source§impl Clone for EnqueueResult
impl Clone for EnqueueResult
Source§fn clone(&self) -> EnqueueResult
fn clone(&self) -> EnqueueResult
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 moreSource§impl Debug for EnqueueResult
impl Debug for EnqueueResult
Source§impl PartialEq for EnqueueResult
impl PartialEq for EnqueueResult
impl Copy for EnqueueResult
impl Eq for EnqueueResult
impl StructuralPartialEq for EnqueueResult
Auto Trait Implementations§
impl Freeze for EnqueueResult
impl RefUnwindSafe for EnqueueResult
impl Send for EnqueueResult
impl Sync for EnqueueResult
impl Unpin for EnqueueResult
impl UnsafeUnpin for EnqueueResult
impl UnwindSafe for EnqueueResult
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