[][src]Trait slog_scope_futures::FutureExt

pub trait FutureExt: Future + Sized {
    fn with_logger<L>(self, logger: L) -> SlogScope<L, Self>
    where
        L: Borrow<Logger>
, { ... } }

Convenience trait for wrapping a Future in a slog scope via method chaining.

Automatically implemented for all Futures.

Provided methods

Important traits for SlogScope<L, F>
fn with_logger<L>(self, logger: L) -> SlogScope<L, Self> where
    L: Borrow<Logger>, 

Wrap self in a slog scope

Loading content...

Implementors

impl<F> FutureExt for F where
    F: Future
[src]

Important traits for SlogScope<L, F>
fn with_logger<L>(self, logger: L) -> SlogScope<L, Self> where
    L: Borrow<Logger>, 
[src]

Loading content...