pub struct SpanContext { /* private fields */ }Expand description
Context for propagating parent-child CPU timing across thread boundaries.
Created by fork() on the parent thread, passed to child threads via
adopt(). When the child completes, its CPU time is accumulated
in children_cpu_ns which the parent reads back via Drop (or explicit finalize()).
Wall time is NOT propagated cross-thread (it’s not additive for parallel work).
Implementations§
Source§impl SpanContext
impl SpanContext
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpanContext
impl RefUnwindSafe for SpanContext
impl Send for SpanContext
impl Sync for SpanContext
impl Unpin for SpanContext
impl UnsafeUnpin for SpanContext
impl UnwindSafe for SpanContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more