[−][src]Struct tracing_flame::FlushGuard
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]
W: Write + 'static,
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]
W: Write + 'static,
impl<W> Drop for FlushGuard<W> where
W: Write + 'static,
[src]
W: Write + 'static,
Auto Trait Implementations
impl<W> RefUnwindSafe for FlushGuard<W>
impl<W> Send for FlushGuard<W> where
W: Send,
W: Send,
impl<W> Sync for FlushGuard<W> where
W: Send,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,