pub struct RefNs(pub u64);Expand description
The pipeline’s monotonic reference time in nanoseconds: a relative timeline with
an arbitrary epoch (whatever the platform clock started at), not absolute wall
time. Distinct from TaiNs: a PTP servo disciplines a RefNs reading to a
TaiNs master, and subtracting one from the other directly is the meaningless
offset the servo work hit. The type keeps the two apart at the servo seam
(observe_master / sync_exchange take a RefNs for t2 / t3 and a TaiNs
for t1 / t4), so the master and reference roles can no longer be swapped.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
impl Copy for RefNs
impl Eq for RefNs
Source§impl Ord for RefNs
impl Ord for RefNs
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 PartialOrd for RefNs
impl PartialOrd for RefNs
impl StructuralPartialEq for RefNs
Auto Trait Implementations§
impl Freeze for RefNs
impl RefUnwindSafe for RefNs
impl Send for RefNs
impl Sync for RefNs
impl Unpin for RefNs
impl UnsafeUnpin for RefNs
impl UnwindSafe for RefNs
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