pub struct NoopSpan;Expand description
No-op span returned when the tracing feature is disabled.
Implements .entered() and .enter() so that
hick_trace::info_span!(...).entered() compiles in both tracing and
no-tracing builds.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoopSpan
impl RefUnwindSafe for NoopSpan
impl Send for NoopSpan
impl Sync for NoopSpan
impl Unpin for NoopSpan
impl UnsafeUnpin for NoopSpan
impl UnwindSafe for NoopSpan
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