pub struct MonotonicTimebase(/* private fields */);Expand description
The origin’s clock at announce emission: 5-byte big-endian whole seconds (0..=2^40-1).
Receivers only ever compare these, never add them to a wall clock, so the type stays distinct from epoch seconds.
Big-endian byte order makes Ord numeric.
Implementations§
Trait Implementations§
Source§impl Clone for MonotonicTimebase
impl Clone for MonotonicTimebase
Source§fn clone(&self) -> MonotonicTimebase
fn clone(&self) -> MonotonicTimebase
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 moreimpl Copy for MonotonicTimebase
Source§impl Debug for MonotonicTimebase
impl Debug for MonotonicTimebase
impl Eq for MonotonicTimebase
Source§impl Hash for MonotonicTimebase
impl Hash for MonotonicTimebase
Source§impl Ord for MonotonicTimebase
impl Ord for MonotonicTimebase
Source§fn cmp(&self, other: &MonotonicTimebase) -> Ordering
fn cmp(&self, other: &MonotonicTimebase) -> Ordering
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 PartialEq for MonotonicTimebase
impl PartialEq for MonotonicTimebase
Source§impl PartialOrd for MonotonicTimebase
impl PartialOrd for MonotonicTimebase
impl StructuralPartialEq for MonotonicTimebase
Auto Trait Implementations§
impl Freeze for MonotonicTimebase
impl RefUnwindSafe for MonotonicTimebase
impl Send for MonotonicTimebase
impl Sync for MonotonicTimebase
impl Unpin for MonotonicTimebase
impl UnsafeUnpin for MonotonicTimebase
impl UnwindSafe for MonotonicTimebase
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