pub struct SyncQuality {
pub offset_ns: i64,
pub uncertainty_ns: u64,
pub estimated: bool,
}Expand description
Quality of time synchronization relative to a reference clock.
Fields§
§offset_ns: i64Estimated offset from the reference clock in nanoseconds.
uncertainty_ns: u64Estimated 1-sigma uncertainty in nanoseconds.
estimated: boolWhether the offset is an estimate rather than a hard measurement.
Implementations§
Trait Implementations§
Source§impl Clone for SyncQuality
impl Clone for SyncQuality
Source§fn clone(&self) -> SyncQuality
fn clone(&self) -> SyncQuality
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyncQuality
impl Debug for SyncQuality
Source§impl Default for SyncQuality
impl Default for SyncQuality
Source§fn default() -> SyncQuality
fn default() -> SyncQuality
Returns the “default value” for a type. Read more
Source§impl Hash for SyncQuality
impl Hash for SyncQuality
Source§impl PartialEq for SyncQuality
impl PartialEq for SyncQuality
Source§fn eq(&self, other: &SyncQuality) -> bool
fn eq(&self, other: &SyncQuality) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SyncQuality
impl Eq for SyncQuality
impl StructuralPartialEq for SyncQuality
Auto Trait Implementations§
impl Freeze for SyncQuality
impl RefUnwindSafe for SyncQuality
impl Send for SyncQuality
impl Sync for SyncQuality
impl Unpin for SyncQuality
impl UnsafeUnpin for SyncQuality
impl UnwindSafe for SyncQuality
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