Struct opentelemetry::ContextGuard
source · pub struct ContextGuard { /* private fields */ }
Expand description
A guard that resets the current context to the prior context when dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextGuard
impl !RefUnwindSafe for ContextGuard
impl !Send for ContextGuard
impl !Sync for ContextGuard
impl Unpin 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