pub struct Discontinuity {
pub time: f64,
pub start: f64,
pub last: Option<f64>,
}Expand description
A reset or replacement of the counter, declared by the caller.
Fields§
§time: f64When it happened. It belongs to the pair of readings around it: after the earlier reading, at or before the later one.
start: f64The register’s value right after it – 0 for a reset to zero, the new register’s reading for a replacement.
last: Option<f64>The old register’s last value, when it was read: the increase then
also counts what the counter advanced from the earlier reading up to
the change. None: that part is unknown and not counted.
Trait Implementations§
Source§impl Clone for Discontinuity
impl Clone for Discontinuity
impl Copy for Discontinuity
Source§impl Debug for Discontinuity
impl Debug for Discontinuity
Source§impl PartialEq for Discontinuity
impl PartialEq for Discontinuity
impl StructuralPartialEq for Discontinuity
Auto Trait Implementations§
impl Freeze for Discontinuity
impl RefUnwindSafe for Discontinuity
impl Send for Discontinuity
impl Sync for Discontinuity
impl Unpin for Discontinuity
impl UnsafeUnpin for Discontinuity
impl UnwindSafe for Discontinuity
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