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.
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<OverflowPolicy> for OverflowPolicy
impl PartialEq<OverflowPolicy> for OverflowPolicy
source§fn eq(&self, other: &OverflowPolicy) -> bool
fn eq(&self, other: &OverflowPolicy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.