Skip to main content

TimestampGenerator

Trait TimestampGenerator 

Source
pub trait TimestampGenerator {
    // Required method
    fn Now() -> Timestamp;
}
Expand description

Generator trait for timestamps.

Required Methods§

Source

fn Now() -> Timestamp

Returns the current timestamp in microseconds since Unix epoch.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§