pub struct GlobalLoggerGuard { /* private fields */ }
Expand description
Guard resetting global logger
On drop it will reset global logger to slog::Discard
.
This will drop
any existing global logger.
Implementations§
Source§impl GlobalLoggerGuard
impl GlobalLoggerGuard
Sourcepub fn is_canceled(&self) -> bool
pub fn is_canceled(&self) -> bool
Getter for canceled to check status
Sourcepub fn cancel_reset(self)
pub fn cancel_reset(self)
Cancel resetting global logger
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlobalLoggerGuard
impl RefUnwindSafe for GlobalLoggerGuard
impl Send for GlobalLoggerGuard
impl Sync for GlobalLoggerGuard
impl Unpin for GlobalLoggerGuard
impl UnwindSafe for GlobalLoggerGuard
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