pub struct SpanGuard<B: TracingBridge + 'static> { /* private fields */ }Expand description
RAII guard that ends a span when dropped.
If not explicitly completed via SpanGuard::complete, the span is
ended with an error outcome on drop.
Implementations§
Source§impl<B: TracingBridge + 'static> SpanGuard<B>
impl<B: TracingBridge + 'static> SpanGuard<B>
Trait Implementations§
Auto Trait Implementations§
impl<B> !Freeze for SpanGuard<B>
impl<B> RefUnwindSafe for SpanGuard<B>where
B: RefUnwindSafe,
impl<B> Send for SpanGuard<B>
impl<B> Sync for SpanGuard<B>
impl<B> Unpin for SpanGuard<B>
impl<B> UnsafeUnpin for SpanGuard<B>
impl<B> UnwindSafe for SpanGuard<B>where
B: RefUnwindSafe,
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