pub trait TimeEpoch: Sized + Send + Sync {
// Required methods
fn name() -> &'static str;
fn epoch_offset() -> Duration;
}
Expand description
An epoch for LimitedResolutionTimestamp
.
Required Methods§
sourcefn name() -> &'static str
fn name() -> &'static str
The name of this epoch, used in KeyEncoding::describe
to
disambiguate timestamps with different epochs.
sourcefn epoch_offset() -> Duration
fn epoch_offset() -> Duration
The offset from UNIX_EPOCH
for this epoch.
Object Safety§
This trait is not object safe.