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 !Freeze for LazySpanCache
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