tracing_subscriber::layer

Trait SubscriberExt

Source
pub trait SubscriberExt: Subscriber + Sealed {
    // Provided method
    fn with<L>(self, layer: L) -> Layered<L, Self>
       where L: Layer<Self>,
             Self: Sized { ... }
}
Expand description

Extension trait adding a with(Layer) combinator to Subscribers.

Provided Methods§

Source

fn with<L>(self, layer: L) -> Layered<L, Self>
where L: Layer<Self>, Self: Sized,

Wraps self with the provided layer.

Implementors§