#[non_exhaustive]pub struct TracingGuard { /* private fields */ }Expand description
Owns background resources installed by strict tracing initialization.
Hold this guard for the lifetime of the process. When an audit log is
configured, the guard owns the dedicated audit writer thread’s shutdown
signal and join handle. Dropping it signals shutdown and makes a best-effort,
time-bounded (5s) attempt to drain queued audit entries, flush the file, and
join the writer thread. This is not a durability guarantee: audit events
emitted after drop are lost, and if the writer thread is blocked on a slow or
stuck filesystem past the timeout, Drop returns and remaining queued entries
may never reach disk.
Trait Implementations§
Source§impl Debug for TracingGuard
impl Debug for TracingGuard
Source§impl Drop for TracingGuard
impl Drop for TracingGuard
Auto Trait Implementations§
impl !RefUnwindSafe for TracingGuard
impl !UnwindSafe for TracingGuard
impl Freeze for TracingGuard
impl Send for TracingGuard
impl Sync for TracingGuard
impl Unpin for TracingGuard
impl UnsafeUnpin for TracingGuard
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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