pub enum PushOutcome<T> {
Accepted,
Dropped {
dropped: T,
},
Rejected(T),
}Expand description
Outcome of a bounded push once an OverflowStrategy has been
applied. Accepted means the message was enqueued (possibly after
dropping another); Rejected(msg) means the configured strategy
refused the push and returns the original message.
Variants§
Trait Implementations§
Source§impl<T: Debug> Debug for PushOutcome<T>
impl<T: Debug> Debug for PushOutcome<T>
Source§impl<T: PartialEq> PartialEq for PushOutcome<T>
impl<T: PartialEq> PartialEq for PushOutcome<T>
impl<T: Eq> Eq for PushOutcome<T>
impl<T> StructuralPartialEq for PushOutcome<T>
Auto Trait Implementations§
impl<T> Freeze for PushOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for PushOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for PushOutcome<T>where
T: Send,
impl<T> Sync for PushOutcome<T>where
T: Sync,
impl<T> Unpin for PushOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for PushOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PushOutcome<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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.