Struct tracing::dispatch::DefaultGuard
source · pub struct DefaultGuard(_);
Available on crate feature
std
only.Expand description
A guard that resets the current default dispatcher to the prior default dispatcher when dropped.
Trait Implementations§
source§impl Debug for DefaultGuard
impl Debug for DefaultGuard
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultGuard
impl Send for DefaultGuard
impl Sync for DefaultGuard
impl Unpin for DefaultGuard
impl !UnwindSafe for DefaultGuard
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> WithCollector for T
impl<T> WithCollector for T
source§fn with_collector<C>(self, collector: C) -> WithDispatch<Self> ⓘwhere
C: Into<Dispatch>,
fn with_collector<C>(self, collector: C) -> WithDispatch<Self> ⓘwhere
C: Into<Dispatch>,
Available on crate feature
std
only.source§fn with_current_collector(self) -> WithDispatch<Self> ⓘ
fn with_current_collector(self) -> WithDispatch<Self> ⓘ
Available on crate feature
std
only.