pub enum OverflowStrategy {
DropNew,
DropHead,
DropTail,
Fail,
}Expand description
What a bounded mailbox does when its capacity is reached. overflow policy.
Variants§
DropNew
Drop the new (incoming) message and log it as a dead letter.
DropHead
Drop the oldest enqueued message and accept the new one.
DropTail
Drop the most-recently-enqueued message and accept the new one.
Fail
Reject the push and signal failure to the sender.
Trait Implementations§
Source§impl Clone for OverflowStrategy
impl Clone for OverflowStrategy
Source§fn clone(&self) -> OverflowStrategy
fn clone(&self) -> OverflowStrategy
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 OverflowStrategy
impl Debug for OverflowStrategy
Source§impl Default for OverflowStrategy
impl Default for OverflowStrategy
Source§fn default() -> OverflowStrategy
fn default() -> OverflowStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for OverflowStrategy
impl PartialEq for OverflowStrategy
impl Copy for OverflowStrategy
impl Eq for OverflowStrategy
impl StructuralPartialEq for OverflowStrategy
Auto Trait Implementations§
impl Freeze for OverflowStrategy
impl RefUnwindSafe for OverflowStrategy
impl Send for OverflowStrategy
impl Sync for OverflowStrategy
impl Unpin for OverflowStrategy
impl UnsafeUnpin for OverflowStrategy
impl UnwindSafe for OverflowStrategy
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.