pub struct ClockMeasure { /* private fields */ }Expand description
What a reader measured of one stamping clock during a reading (§2.6, ground 2, 0.2): the offset closest to its own clock, since transit only adds to an offset, and the offset furthest ahead, since a stamp ahead of the reader’s clock by more than the delta proves the clocks disagree whatever the transit.
Implementations§
Source§impl ClockMeasure
impl ClockMeasure
Sourcepub fn merge(self, other: Self) -> Self
pub fn merge(self, other: Self) -> Self
Two readers’ measurements of one clock, as one reading’s.
Sourcepub fn most_ahead(&self) -> StampAge
pub fn most_ahead(&self) -> StampAge
The offset furthest ahead (the most negative).
Sourcepub fn trust(&self, delta: Duration) -> ClockTrust
pub fn trust(&self, delta: Duration) -> ClockTrust
§2.6, ground 2 (0.2): trusted when the closest offset is within
delta, and no stamp was ahead by more than delta.
Trait Implementations§
Source§impl Clone for ClockMeasure
impl Clone for ClockMeasure
impl Copy for ClockMeasure
Source§impl Debug for ClockMeasure
impl Debug for ClockMeasure
impl Eq for ClockMeasure
Source§impl PartialEq for ClockMeasure
impl PartialEq for ClockMeasure
impl StructuralPartialEq for ClockMeasure
Auto Trait Implementations§
impl Forget for ClockMeasure
impl Freeze for ClockMeasure
impl Move for ClockMeasure
impl RefUnwindSafe for ClockMeasure
impl Send for ClockMeasure
impl Sync for ClockMeasure
impl Unpin for ClockMeasure
impl UnsafeUnpin for ClockMeasure
impl UnwindSafe for ClockMeasure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more