pub enum Observation {
Baseline,
Window(Window),
Skipped,
Unmeasured,
}Expand description
What one sample told the caller.
Variants§
Baseline
A complete snapshot with nothing to compare against: the first one, or the first after an incomplete one. Credits nothing.
Window(Window)
Two consecutive complete snapshots, and the work between them.
Skipped
The snapshot was incomplete, but the last complete one is kept: the next complete snapshot spans the gap as a window, so one slow walk on a loaded machine costs an interval, not the baseline.
Unmeasured
Nothing can be measured from here: the root could not be read, or too many snapshots in a row came back partial. The next complete one starts over as a baseline.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
impl Copy for Observation
Source§impl Debug for Observation
impl Debug for Observation
impl Eq for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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