[][src]Enum sloggers::types::OverflowStrategy

pub enum OverflowStrategy {
    DropAndReport,
    Drop,
    Block,
}

Overflow Strategy.

Examples

The default value: DropAndReport

use sloggers::types::OverflowStrategy;

assert_eq!(OverflowStrategy::default(), OverflowStrategy::DropAndReport);

Variants

DropAndReport
Drop
Block

Implementations

impl OverflowStrategy[src]

pub fn to_async_type(self) -> OverflowStrategy[src]

Convert the sloggers' OverflowStrategy to slog_async's OverflowStrategy

Trait Implementations

impl Clone for OverflowStrategy[src]

impl Copy for OverflowStrategy[src]

impl Debug for OverflowStrategy[src]

impl Default for OverflowStrategy[src]

impl<'de> Deserialize<'de> for OverflowStrategy[src]

impl Eq for OverflowStrategy[src]

impl FromStr for OverflowStrategy[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<OverflowStrategy> for OverflowStrategy[src]

impl Serialize for OverflowStrategy[src]

impl StructuralEq for OverflowStrategy[src]

impl StructuralPartialEq for OverflowStrategy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.