[−][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]
pub fn clone(&self) -> OverflowMode
[src]
pub 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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for OverflowMode
[src]
pub fn cmp(&self, other: &OverflowMode) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<OverflowMode> for OverflowMode
[src]
pub fn eq(&self, other: &OverflowMode) -> bool
[src]
pub fn ne(&self, other: &OverflowMode) -> bool
[src]
impl PartialOrd<OverflowMode> for OverflowMode
[src]
pub fn partial_cmp(&self, other: &OverflowMode) -> Option<Ordering>
[src]
pub fn lt(&self, other: &OverflowMode) -> bool
[src]
pub fn le(&self, other: &OverflowMode) -> bool
[src]
pub fn gt(&self, other: &OverflowMode) -> bool
[src]
pub fn ge(&self, other: &OverflowMode) -> bool
[src]
impl StructuralEq for OverflowMode
[src]
impl StructuralPartialEq for OverflowMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for OverflowMode
[src]
impl Send for OverflowMode
[src]
impl Sync for OverflowMode
[src]
impl Unpin for OverflowMode
[src]
impl UnwindSafe for OverflowMode
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,