[−][src]Enum spirit_log::background::OverflowMode
Selection of how to act if the channel to the logger thread is full.
This enum is non-exhaustive. Adding more variants in the future will not be considered a breaking change.
Variants (Non-exhaustive)
Blocks until there's enough space to push the message.
If there's not enough space in the channel, the message is dropped and counted.
Subsequently, the thread will log how many messages were lost.
Drop the messages that don't without any indication it happened.
Drop less severe messages sooner than filling the whole buffer.
If the buffer is completely full, it acts like the DropMsg
. If
it's not full, but has more than fill_limit
messages in it, messages with severity
from_level
or less severe are dropped, while more severe are still inserted into the
buffer.
Both limits are inclusive.
Fields of AdaptiveDrop
Trait Implementations
impl Clone for OverflowMode
[src]
fn clone(&self) -> OverflowMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for OverflowMode
[src]
impl Debug for OverflowMode
[src]
impl Eq for OverflowMode
[src]
impl Hash for OverflowMode
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for OverflowMode
[src]
fn cmp(&self, other: &OverflowMode) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<OverflowMode> for OverflowMode
[src]
fn eq(&self, other: &OverflowMode) -> bool
[src]
fn ne(&self, other: &OverflowMode) -> bool
[src]
impl PartialOrd<OverflowMode> for OverflowMode
[src]
fn partial_cmp(&self, other: &OverflowMode) -> Option<Ordering>
[src]
fn lt(&self, other: &OverflowMode) -> bool
[src]
fn le(&self, other: &OverflowMode) -> bool
[src]
fn gt(&self, other: &OverflowMode) -> bool
[src]
fn ge(&self, other: &OverflowMode) -> bool
[src]
impl StructuralEq for OverflowMode
[src]
impl StructuralPartialEq for OverflowMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for OverflowMode
impl Send for OverflowMode
impl Sync for OverflowMode
impl Unpin for OverflowMode
impl UnwindSafe for OverflowMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,