pub trait TimeEpoch: Sized + Send + Sync {
    // Required methods
    fn name() -> &'static str;
    fn epoch_offset() -> Duration;
}
Expand description

Required Methods§

source

fn name() -> &'static str

The name of this epoch, used in KeyEncoding::describe to disambiguate timestamps with different epochs.

source

fn epoch_offset() -> Duration

The offset from UNIX_EPOCH for this epoch.

Implementors§