pub struct FlushGuard { /* private fields */ }Available on crate feature
std only.Expand description
Flushes and shuts down a logger’s sinks when dropped.
Returned by init and Logger::flush_guard. Bind it to a named
variable (let _guard = ...), not _, which would drop it at once.
Errors during the final shutdown go to the logger’s error handler.
Implementations§
Trait Implementations§
Source§impl Debug for FlushGuard
impl Debug for FlushGuard
Source§impl Drop for FlushGuard
impl Drop for FlushGuard
Auto Trait Implementations§
impl Forget for FlushGuard
impl Freeze for FlushGuard
impl Move for FlushGuard
impl RefUnwindSafe for FlushGuard
impl Send for FlushGuard
impl Sync for FlushGuard
impl Unpin for FlushGuard
impl UnsafeUnpin for FlushGuard
impl UnwindSafe for FlushGuard
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