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
sourceimpl CurrentSpan
impl CurrentSpan
Trait Implementations
sourceimpl Debug for CurrentSpan
impl Debug for CurrentSpan
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more