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

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

tracing_subscriber::subscribe

Trait CollectExt

Source
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§