Trait TimestampGenerator

Source
pub trait TimestampGenerator: Send + Sync {
    // Required method
    fn next_timestamp(&self) -> i64;
}
Expand description

Trait used to represent a timestamp generator

Required Methods§

Source

fn next_timestamp(&self) -> i64

This generates a new timestamp

Implementors§