pub struct Reading {
pub offset: i128,
pub span: u64,
}Expand description
A hardware clock against another clock, read between two of the other’s readings: how far it was ahead, and how long the reading took from the other’s first to its second. The hardware clock is latched somewhere in that span, so a reading is off by up to half of it; a slow one, held up on the way to the latch or after it, by up to half of what it took beyond the usual. Comparisons that must hold to less than a microsecond can leave such readings out.
Fields§
§offset: i128The hardware clock less the other, in nanoseconds.
span: u64How long the reading took, in nanoseconds.
Trait Implementations§
impl Copy for Reading
impl Eq for Reading
impl StructuralPartialEq for Reading
Auto Trait Implementations§
impl Forget for Reading
impl Freeze for Reading
impl Move for Reading
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnsafeUnpin for Reading
impl UnwindSafe for Reading
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