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

Prepare an IntervalLogWriter.

This type only allows writing comments and headers. Once you’re done writing those things, use into_log_writer() to convert this into an IntervalLogWriter.

Implementations

Create a new log writer that writes to writer and serializes histograms with serializer.

Add a comment line to be written when the writer is built.

Comments containing ‘\n’ will be transformed into multiple lines of comments.

Set a StartTime. See the module-level documentation for more info.

This can be called multiple times, but only the value for the most recent invocation will be written.

Set a BaseTime. See the module-level documentation for more info.

This can be called multiple times, but only the value for the most recent invocation will be written.

Set a max value divisor.

This is used to scale down the max value part of an interval log to something that may be more human readable. The max value in the log is only for human consumption, so you might prefer to divide by 109 to turn nanoseconds into fractional seconds, for instance.

If this is not set, 1.0 will be used.

This can be called multiple times, but only the value for the most recent invocation will be written.

Build a LogWriter and apply any configured headers.

Trait Implementations

Returns the “default value” for a 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

Performs the conversion.

Performs the conversion.

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.