Struct tracing_actions::span_constructor::LazySpanCache
source · pub struct LazySpanCache { /* private fields */ }
Expand description
Works with shared spans when it wins a race to grab a mutex. When it doesn’t get a shared span, it simply allocates a new one.
Implementations§
Trait Implementations§
source§impl Default for LazySpanCache
impl Default for LazySpanCache
source§impl SpanConstructor for LazySpanCache
impl SpanConstructor for LazySpanCache
fn new_span(&self) -> ActionSpan
fn return_span(&self, span: ActionSpan)
Auto Trait Implementations§
impl RefUnwindSafe for LazySpanCache
impl Send for LazySpanCache
impl Sync for LazySpanCache
impl Unpin for LazySpanCache
impl UnwindSafe for LazySpanCache
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