pub trait TimeTagged {
    fn epoch(&self) -> Epoch;
    fn set_epoch(&mut self, epoch: Epoch);

    fn shift_by(&mut self, duration: Duration) { ... }
}
Expand description

A trait allowing for something to have an epoch

Required Methods

Retrieve the Epoch

Set the Epoch

Provided Methods

Shift this epoch by a duration (can be negative)

Implementors