#[non_exhaustive]pub enum OverflowPolicy {
Block,
DropIncoming,
}
Available on crate feature
multi-thread
only.Expand description
Overflow policy for asynchronous sinks.
When the channel is full, an incoming operation is handled according to the specified policy.
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.
Trait Implementations§
Source§impl Clone for OverflowPolicy
impl Clone for OverflowPolicy
Source§fn clone(&self) -> OverflowPolicy
fn clone(&self) -> OverflowPolicy
Returns a copy 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 OverflowPolicy
impl Debug for OverflowPolicy
Source§impl Hash for OverflowPolicy
impl Hash for OverflowPolicy
Source§impl PartialEq for OverflowPolicy
impl PartialEq for OverflowPolicy
impl Copy for OverflowPolicy
impl Eq for OverflowPolicy
impl StructuralPartialEq for OverflowPolicy
Auto Trait Implementations§
impl Freeze for OverflowPolicy
impl RefUnwindSafe for OverflowPolicy
impl Send for OverflowPolicy
impl Sync for OverflowPolicy
impl Unpin for OverflowPolicy
impl UnwindSafe for OverflowPolicy
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