Struct tracing_forest::builder::SubscriberBuilder
source · [−]pub struct SubscriberBuilder<S, E> { /* private fields */ }
Expand description
A type for building Subscriber
s by composing many Layer
s, while also
holding extension data necessary for some TreeLayer
types.
Implementations
impl<S, E> SubscriberBuilder<S, AsyncExtensions<E>> where
S: Subscriber + Send + Sync,
E: 'static + Future<Output = ()> + Send,
impl<S, E> SubscriberBuilder<S, AsyncExtensions<E>> where
S: Subscriber + Send + Sync,
E: 'static + Future<Output = ()> + Send,
Runs the provided closure in the context of a subscriber layered with a
TreeLayer
.
Auto Trait Implementations
impl<S, E> RefUnwindSafe for SubscriberBuilder<S, E> where
E: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, E> Send for SubscriberBuilder<S, E> where
E: Send,
S: Send,
impl<S, E> Sync for SubscriberBuilder<S, E> where
E: Sync,
S: Sync,
impl<S, E> Unpin for SubscriberBuilder<S, E> where
E: Unpin,
S: Unpin,
impl<S, E> UnwindSafe for SubscriberBuilder<S, E> where
E: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more