pub struct LoggingGuard { /* private fields */ }Expand description
Keeps the background log-writing thread alive.
Dropping it flushes and stops that thread, so the value must be held for as
long as the program expects its diagnostics to be written. Losing it is a
silent, total loss of logs, which is why it is #[must_use].
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LoggingGuard
impl !UnwindSafe for LoggingGuard
impl Freeze for LoggingGuard
impl Send for LoggingGuard
impl Sync for LoggingGuard
impl Unpin for LoggingGuard
impl UnsafeUnpin for LoggingGuard
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