pub struct LoggerGuard { /* private fields */ }
Expand description
A guard that flushes logs associated to a Logger on a drop
With this guard, you can ensure all logs are written to destination when the application exits.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoggerGuard
impl RefUnwindSafe for LoggerGuard
impl Send for LoggerGuard
impl Sync for LoggerGuard
impl Unpin for LoggerGuard
impl UnwindSafe for LoggerGuard
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