pub enum LogEntry<'a> {
    StartTime(Duration),
    BaseTime(Duration),
    Interval(IntervalLogHistogram<'a>),
}
Expand description

Represents one non-comment line in an interval log.

One thing to note is that the way your interval timestamps work can vary. If your log was written with a StartTime or BaseTime, that metadata will appear in header comments, and that will be represented by the iterator providing the corresponding variants here. The presence of those timestamps will affect how you should interpret the timestamps for individual intervals. See the module-level documentation.

Variants§

§

StartTime(Duration)

Logs may include a StartTime. If present, it represents seconds since the epoch.

§

BaseTime(Duration)

Logs may include a BaseTime. If present, it represents seconds since the epoch.

§

Interval(IntervalLogHistogram<'a>)

An individual interval histogram.

Trait Implementations§

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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.