pub struct FlushGuard<W>where
W: Write + 'static,{ /* private fields */ }
Expand description
An RAII guard for managing flushing a global writer that is otherwise inaccessible.
This type is only needed when using
tracing::subscriber::set_global_default
, which prevents the drop
implementation of layers from running when the program exits.
Implementations§
Trait Implementations§
Source§impl<W> Debug for FlushGuard<W>
impl<W> Debug for FlushGuard<W>
Auto Trait Implementations§
impl<W> Freeze for FlushGuard<W>
impl<W> RefUnwindSafe for FlushGuard<W>
impl<W> Send for FlushGuard<W>where
W: Send,
impl<W> Sync for FlushGuard<W>where
W: Send,
impl<W> Unpin for FlushGuard<W>
impl<W> UnwindSafe for FlushGuard<W>
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