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

Required Methods§

fn name() -> &'static str

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

fn epoch_offset() -> Duration

The offset from UNIX_EPOCH for this epoch.

Implementors§