pub struct SpanGuard { /* private fields */ }Expand description
RAII guard that sets the current span for error reporting.
When dropped, restores the previous span value.
The From<ReflectError> impl will panic if no span is set.
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