pub struct FlushGuard { /* private fields */ }
Expand description

This guard will signal the thread writing the trace file to stop and join it when dropped.

Implementations

Signals the trace writing thread to flush to disk.

Finishes the current trace and starts a new one.

If a Write implementation is supplied, the new trace is written to it. Otherwise, the new trace goes to ./trace-{unix epoc in micros}.json.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.