Struct tracing::subscriber::NoSubscriber [−][src]
pub struct NoSubscriber(_);
Expand description
A no-op Subscriber
NoSubscriber
implements the Subscriber
trait by never being enabled,
never being interested in any callsite, and drops all spans and events.
Trait Implementations
Returns the “default value” for a type. Read more
Registers a new callsite with this subscriber, returning whether or not the subscriber is interested in being notified about the callsite. Read more
Record a set of values on a span. Read more
Adds an indication that span
follows from the span with the id
follows
. Read more
Returns the highest verbosity level that this Subscriber
will
enable, or None
, if the subscriber does not implement level-based
filtering or chooses not to implement this method. Read more
Notifies the subscriber that a [span ID
] has been dropped, and returns
true
if there are now 0 IDs that refer to that span. Read more
Returns a type representing this subscriber’s view of the current span. Read more
Auto Trait Implementations
impl RefUnwindSafe for NoSubscriber
impl Send for NoSubscriber
impl Sync for NoSubscriber
impl Unpin for NoSubscriber
impl UnwindSafe for NoSubscriber
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
impl<T: Future> Future for Instrumented<T> type Output = T::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
impl<T: Future> Future for Instrumented<T> type Output = T::Output;
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