pub struct MlsTime { /* private fields */ }
Implementations§
source§impl MlsTime
impl MlsTime
sourcepub fn from_duration_since_epoch(duration: Duration) -> MlsTime
pub fn from_duration_since_epoch(duration: Duration) -> MlsTime
Create a timestamp from a duration since unix epoch.
sourcepub fn seconds_since_epoch(&self) -> u64
pub fn seconds_since_epoch(&self) -> u64
Number of seconds since the unix epoch.
Trait Implementations§
source§impl Ord for MlsTime
impl Ord for MlsTime
source§impl PartialEq for MlsTime
impl PartialEq for MlsTime
source§impl PartialOrd for MlsTime
impl PartialOrd for MlsTime
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MlsTime
impl Eq for MlsTime
impl StructuralEq for MlsTime
impl StructuralPartialEq for MlsTime
Auto Trait Implementations§
impl RefUnwindSafe for MlsTime
impl Send for MlsTime
impl Sync for MlsTime
impl Unpin for MlsTime
impl UnwindSafe for MlsTime
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more