Enum spdlog::sink::OverflowPolicy
source · #[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.
Block
Blocks until the channel is not full.
DropIncoming
Drops the incoming operation.
Trait Implementations
sourceimpl Clone for OverflowPolicy
impl Clone for OverflowPolicy
sourcefn clone(&self) -> OverflowPolicy
fn clone(&self) -> OverflowPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OverflowPolicy
impl Debug for OverflowPolicy
sourceimpl Hash for OverflowPolicy
impl Hash for OverflowPolicy
sourceimpl PartialEq<OverflowPolicy> for OverflowPolicy
impl PartialEq<OverflowPolicy> for OverflowPolicy
sourcefn eq(&self, other: &OverflowPolicy) -> bool
fn eq(&self, other: &OverflowPolicy) -> bool
impl Copy for OverflowPolicy
impl Eq for OverflowPolicy
impl StructuralEq for OverflowPolicy
impl StructuralPartialEq for OverflowPolicy
Auto Trait Implementations
impl RefUnwindSafe for OverflowPolicy
impl Send for OverflowPolicy
impl Sync for OverflowPolicy
impl Unpin for OverflowPolicy
impl UnwindSafe for OverflowPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more