pub struct Timestamp {
pub seconds: u32,
pub quarter_nanos: u32,
}Expand description
A reading of a device’s own clock.
This is different from the clock the stack is polled with. Do not mix
Timestamp values with readings of that clock.
This is typically a higher-precision clock in the MAC.
Fields§
§seconds: u32Whole seconds.
quarter_nanos: u32Fraction of a second, in units of 0.25 nanoseconds.
Always less than 4_000_000_000, i.e. less than one whole second. The quarter
nanosecond is the resolution of the sub-second counter in common PTP hardware.
Implementations§
Trait Implementations§
impl Copy for Timestamp
impl Eq for Timestamp
Source§impl Ord for Timestamp
impl Ord for Timestamp
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
Source§impl PartialOrd for Timestamp
impl PartialOrd for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnsafeUnpin for Timestamp
impl UnwindSafe for Timestamp
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