pub struct UnsafeTimeStamp {
pub value: u64,
}Expand description
An UNIX time stamp.
These should only ever be used for human-display, because timestamps are unreliably in a distributed system.
This one allows underlying access to it’s value and is only obtainable via
unsafe code. The reason behind this is, that you might need to access this
to improve the display for humans (i.e., sorting by date).
Fields§
§value: u64The seconds since the UNIX epoch.
Trait Implementations§
Source§impl Clone for UnsafeTimeStamp
impl Clone for UnsafeTimeStamp
Source§fn clone(&self) -> UnsafeTimeStamp
fn clone(&self) -> UnsafeTimeStamp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnsafeTimeStamp
impl Debug for UnsafeTimeStamp
Source§impl Default for UnsafeTimeStamp
impl Default for UnsafeTimeStamp
Source§fn default() -> UnsafeTimeStamp
fn default() -> UnsafeTimeStamp
Returns the “default value” for a type. Read more
Source§impl Ord for UnsafeTimeStamp
impl Ord for UnsafeTimeStamp
Source§fn cmp(&self, other: &UnsafeTimeStamp) -> Ordering
fn cmp(&self, other: &UnsafeTimeStamp) -> Ordering
1.21.0 · 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 UnsafeTimeStamp
impl PartialEq for UnsafeTimeStamp
Source§impl PartialOrd for UnsafeTimeStamp
impl PartialOrd for UnsafeTimeStamp
impl Copy for UnsafeTimeStamp
impl Eq for UnsafeTimeStamp
impl StructuralPartialEq for UnsafeTimeStamp
Auto Trait Implementations§
impl Freeze for UnsafeTimeStamp
impl RefUnwindSafe for UnsafeTimeStamp
impl Send for UnsafeTimeStamp
impl Sync for UnsafeTimeStamp
impl Unpin for UnsafeTimeStamp
impl UnwindSafe for UnsafeTimeStamp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.