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