pub struct UnixEpoch;
Expand description
A TimeEpoch
implementation that allows storing
LimitedResolutionTimestamp
relative to the “unix epoch”: January 1,
1970 00:00:00 UTC.
Trait Implementations§
source§impl TimeEpoch for UnixEpoch
impl TimeEpoch for UnixEpoch
source§fn name() -> &'static str
fn name() -> &'static str
The name of this epoch, used in
KeyEncoding::describe
to
disambiguate timestamps with different epochs.source§fn epoch_offset() -> Duration
fn epoch_offset() -> Duration
The offset from
UNIX_EPOCH
for this epoch.Auto Trait Implementations§
impl RefUnwindSafe for UnixEpoch
impl Send for UnixEpoch
impl Sync for UnixEpoch
impl Unpin for UnixEpoch
impl UnwindSafe for UnixEpoch
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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