pub struct ContextGuard { /* private fields */ }Available on crate feature
std only.Expand description
RAII guard that removes a context slot when dropped.
Returned by with_field, with_trace_id, and
with_request_id. Drop the guard at the end of the scope where
the context applies. Dropping guards out-of-order is supported.
Trait Implementations§
Source§impl Debug for ContextGuard
impl Debug for ContextGuard
Source§impl Drop for ContextGuard
impl Drop for ContextGuard
Auto Trait Implementations§
impl Freeze for ContextGuard
impl RefUnwindSafe for ContextGuard
impl Send for ContextGuard
impl Sync for ContextGuard
impl Unpin for ContextGuard
impl UnsafeUnpin for ContextGuard
impl UnwindSafe for ContextGuard
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