#[non_exhaustive]pub enum ClockAge {
Unknown,
TimestampOutOfRange,
BeforeTimestamp,
AgeMicros(u64),
}Expand description
Age relative to a supplied local timestamp. This reports age, not a freshness policy: the caller chooses how old an accepted estimate may be. No method can detect timestamps from a different domain that happen to be ordered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
No accepted sample exists (including after reset).
TimestampOutOfRange
The supplied inspection time exceeds 2^53 microseconds.
BeforeTimestamp
Inspection time precedes the retained timestamp; no age is inferred.
AgeMicros(u64)
Elapsed microseconds in the caller’s local time domain.
Trait Implementations§
impl Copy for ClockAge
impl Eq for ClockAge
impl StructuralPartialEq for ClockAge
Auto Trait Implementations§
impl Freeze for ClockAge
impl RefUnwindSafe for ClockAge
impl Send for ClockAge
impl Sync for ClockAge
impl Unpin for ClockAge
impl UnwindSafe for ClockAge
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