pub struct SystemClock;Expand description
Real system clock (REQ-CLK-001/002). Zero-sized; Clock is implemented
on a shared reference so one instance can be handed across threads.
With the ptp feature, quality() lazily runs
detect_sync_quality once and caches
it process-wide (G2: advisory, read at discovery time).
Implementations§
Source§impl SystemClock
impl SystemClock
Trait Implementations§
Source§impl Clock for SystemClock
impl Clock for SystemClock
Source§fn now(&self) -> Timestamp
fn now(&self) -> Timestamp
Current reading.
t.mono never decreases across calls within a
process, even if the underlying source regresses. REQ-CLK-001.Source§fn quality(&self) -> SyncQuality
fn quality(&self) -> SyncQuality
Advisory sync quality of the underlying source (G2 — a hint, never a
guarantee). REQ-CLK-004.
Source§fn source(&self) -> ClockSource
fn source(&self) -> ClockSource
Which underlying source reads are actually served from. REQ-CLK-003.
Source§impl Clone for SystemClock
impl Clone for SystemClock
impl Copy for SystemClock
Source§impl Debug for SystemClock
impl Debug for SystemClock
Source§impl Default for SystemClock
impl Default for SystemClock
impl Eq for SystemClock
Source§impl Hash for SystemClock
impl Hash for SystemClock
Source§impl PartialEq for SystemClock
impl PartialEq for SystemClock
impl StructuralPartialEq for SystemClock
Auto Trait Implementations§
impl Freeze for SystemClock
impl RefUnwindSafe for SystemClock
impl Send for SystemClock
impl Sync for SystemClock
impl Unpin for SystemClock
impl UnsafeUnpin for SystemClock
impl UnwindSafe for SystemClock
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