pub struct TracingGuard {}Expand description
RAII guard that keeps the tracing subscriber and Sentry client alive.
Returned by crate::tracing::init. Hold this value for the entire
lifetime of the process — typically by passing it to crate::run!
or calling Task::shutdown at the end of main.
Dropping the guard without calling shutdown is safe but may not flush
all buffered Sentry events.
Implementations§
Source§impl TracingGuard
impl TracingGuard
Trait Implementations§
Source§impl Default for TracingGuard
impl Default for TracingGuard
Auto Trait Implementations§
impl Freeze for TracingGuard
impl RefUnwindSafe for TracingGuard
impl Send for TracingGuard
impl Sync for TracingGuard
impl Unpin for TracingGuard
impl UnsafeUnpin for TracingGuard
impl UnwindSafe for TracingGuard
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