pub enum SyncQuality {
Ptp,
Ntp,
Fallback,
}Expand description
Advisory classification of the host’s time synchronization.
A hint read at clock construction/discovery time — never a guarantee
(G2): a SyncQuality::Ptp-labelled source may be in holdover.
Consumers use it to decide whether derived timestamps may be correlated
across machines, never for correctness. REQ-CLK-004.
Variants§
Ptp
PTP device present and coherent CLOCK_TAI offset. Still only a
hint: the source may be in holdover.
Ntp
Disciplined by a network sync stack (NTP markers, or a coherent TAI offset without a PTP device).
Fallback
Nothing trustworthy detected — fail-closed to distrust.
Implementations§
Trait Implementations§
Source§impl Clone for SyncQuality
impl Clone for SyncQuality
impl Copy for SyncQuality
Source§impl Debug for SyncQuality
impl Debug for SyncQuality
Source§impl Default for SyncQuality
impl Default for SyncQuality
impl Eq for SyncQuality
Source§impl Hash for SyncQuality
impl Hash for SyncQuality
Source§impl Ord for SyncQuality
impl Ord for SyncQuality
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SyncQuality
impl PartialEq for SyncQuality
Source§impl PartialOrd for SyncQuality
impl PartialOrd 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