pub struct WallTimestamp(/* private fields */);Expand description
One observed wall-clock instant in Unix milliseconds.
Implementations§
Source§impl WallTimestamp
impl WallTimestamp
Sourcepub const fn from_unix_millis(value: u64) -> Self
pub const fn from_unix_millis(value: u64) -> Self
Constructs an explicit Unix-millisecond observation.
Sourcepub const fn unix_millis(self) -> u64
pub const fn unix_millis(self) -> u64
Returns Unix milliseconds.
Trait Implementations§
Source§impl Clone for WallTimestamp
impl Clone for WallTimestamp
Source§fn clone(&self) -> WallTimestamp
fn clone(&self) -> WallTimestamp
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 WallTimestamp
Source§impl Debug for WallTimestamp
impl Debug for WallTimestamp
impl Eq for WallTimestamp
Source§impl Hash for WallTimestamp
impl Hash for WallTimestamp
Source§impl Ord for WallTimestamp
impl Ord for WallTimestamp
Source§fn cmp(&self, other: &WallTimestamp) -> Ordering
fn cmp(&self, other: &WallTimestamp) -> 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
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 WallTimestamp
impl PartialEq for WallTimestamp
Source§impl PartialOrd for WallTimestamp
impl PartialOrd for WallTimestamp
impl StructuralPartialEq for WallTimestamp
Auto Trait Implementations§
impl Freeze for WallTimestamp
impl RefUnwindSafe for WallTimestamp
impl Send for WallTimestamp
impl Sync for WallTimestamp
impl Unpin for WallTimestamp
impl UnsafeUnpin for WallTimestamp
impl UnwindSafe for WallTimestamp
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