Struct tracing_flame::FlushGuard [−][src]
pub struct FlushGuard<W> where
W: Write + 'static, { /* fields omitted */ }
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
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more