Struct tracing_subscriber::CurrentSpan
source · [−]pub struct CurrentSpan { /* private fields */ }
👎 Deprecated since 0.2.18:
Will be removed in v0.3
Expand description
Tracks the currently executing span on a per-thread basis.
Implementations
Returns the Id
of the span in which the current thread is
executing, or None
if it is not inside of a span.
Records that the current thread has entered the span with the provided ID.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CurrentSpan
impl Send for CurrentSpan
impl Sync for CurrentSpan
impl Unpin for CurrentSpan
impl UnwindSafe for CurrentSpan
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