[][src]Struct slog_scope_futures::SlogScope

pub struct SlogScope<L, F> { /* fields omitted */ }

A Future wrapped in a slog scope.

Methods

impl<L, F> SlogScope<L, F> where
    F: Future,
    L: Borrow<Logger>, 
[src]

pub fn new(logger: L, inner: F) -> Self[src]

Wrap a Future in a slog scope.

Trait Implementations

impl<L, F> Future for SlogScope<L, F> where
    F: Future,
    L: Borrow<Logger>, 
[src]

type Output = F::Output

The type of value produced on completion.

Auto Trait Implementations

impl<L, F> Send for SlogScope<L, F> where
    F: Send,
    L: Send

impl<L, F> Sync for SlogScope<L, F> where
    F: Sync,
    L: Sync

Blanket Implementations

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]

Wrap self in a slog scope

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

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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