pub struct SpanGuard(/* private fields */);Expand description
RAII guard returned by MessageInterceptor::before_handle. Held for the
duration of handle and dropped afterward, so an implementation can keep a
tracing::span::Entered (or any other scope guard) alive across the call.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpanGuard
impl !RefUnwindSafe for SpanGuard
impl Send for SpanGuard
impl !Sync for SpanGuard
impl Unpin for SpanGuard
impl UnsafeUnpin for SpanGuard
impl !UnwindSafe for SpanGuard
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