🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

pub trait CollectExt: Collect + Sealed {
    // Provided method
    fn with<S>(self, subscriber: S) -> Layered<S, Self> 
       where S: Subscribe<Self>,
             Self: Sized { ... }
}
Expand description

Extension trait adding a with(Subscribe) combinator to types implementing Collect.

Provided Methods§

source

fn with<S>(self, subscriber: S) -> Layered<S, Self>
where S: Subscribe<Self>, Self: Sized,

Wraps self with the provided subscriber.

Implementors§