[][src]Struct tracing_flame::FlushGuard

#[must_use]pub struct FlushGuard<W> where
    W: Write + 'static, 
{ /* fields omitted */ }

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

impl<W> FlushGuard<W> where
    W: Write + 'static, 
[src]

pub fn flush(&self) -> Result<(), Error>[src]

Flush the internal writer of the FlameLayer, ensuring that all intermediately buffered contents reach their destination.

Trait Implementations

impl<W: Debug> Debug for FlushGuard<W> where
    W: Write + 'static, 
[src]

impl<W> Drop for FlushGuard<W> where
    W: Write + 'static, 
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.