[][src]Trait tracing_futures::WithSubscriber

pub trait WithSubscriber: Sized {
    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where
        S: Into<Dispatch>
, { ... } }

Extension trait allowing futures, streams, and skins to be instrumented with a tracing Subscriber.

Provided methods

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 

Attaches the provided subscriber to this type, returning a WithDispatch wrapper.

When the wrapped type is a future, stream, or sink is polled, the attached subscriber will be set as the default for the duration of that poll. When the wrapped type is an executor, the subscriber will be set as the default for any futures spawned on that executor.

Loading content...

Implementors

impl<T: Sized> WithSubscriber for T[src]

Loading content...