[][src]Struct async_log::Logger

pub struct Logger<L: Log + 'static, F> where
    F: Fn() -> u64 + Send + Sync + 'static, 
{ /* fields omitted */ }

A Logger that wraps other loggers to extend it with async functionality.

Methods

impl<L: Log + 'static, F> Logger<L, F> where
    F: Fn() -> u64 + Send + Sync + 'static, 
[src]

pub fn wrap(logger: L, with: F) -> Self[src]

Wrap an existing logger, extending it with async functionality.

pub fn start(self, filter: LevelFilter) -> Result<(), SetLoggerError>[src]

Start logging.

Trait Implementations

impl<L: Debug + Log + 'static, F: Debug> Debug for Logger<L, F> where
    F: Fn() -> u64 + Send + Sync + 'static, 
[src]

impl<L: Log, F> Log for Logger<L, F> where
    F: Fn() -> u64 + Send + Sync + 'static, 
[src]

Auto Trait Implementations

impl<L, F> Sync for Logger<L, F>

impl<L, F> Unpin for Logger<L, F> where
    F: Unpin,
    L: Unpin

impl<L, F> Send for Logger<L, F>

impl<L, F> UnwindSafe for Logger<L, F> where
    F: UnwindSafe,
    L: UnwindSafe

impl<L, F> RefUnwindSafe for Logger<L, F> where
    F: RefUnwindSafe,
    L: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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