Enum hdrhistogram::serialization::interval_log::LogEntry
source · 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§
impl<'a> StructuralPartialEq for LogEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for LogEntry<'a>
impl<'a> RefUnwindSafe for LogEntry<'a>
impl<'a> Send for LogEntry<'a>
impl<'a> Sync for LogEntry<'a>
impl<'a> Unpin for LogEntry<'a>
impl<'a> UnwindSafe for LogEntry<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more