#[non_exhaustive]pub struct UtcSample {
pub mono_us: u64,
pub utc_us: i64,
pub uncertainty_us: u64,
}Expand description
One clock measurement: at monotonic mono_us the UTC time was utc_us
(Unix microseconds), give or take uncertainty_us.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mono_us: u64Monotonic microseconds the sample refers to.
utc_us: i64Unix microseconds at that instant.
uncertainty_us: u64Half-width of the error bar.
Trait Implementations§
impl Copy for UtcSample
impl Eq for UtcSample
impl StructuralPartialEq for UtcSample
Auto Trait Implementations§
impl Forget for UtcSample
impl Freeze for UtcSample
impl RefUnwindSafe for UtcSample
impl Send for UtcSample
impl Sync for UtcSample
impl Unpin for UtcSample
impl UnsafeUnpin for UtcSample
impl UnwindSafe for UtcSample
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