Skip to main content

LogClock

Trait LogClock 

Source
pub trait LogClock: Send + Sync {
    // Required method
    fn now_ms(&self) -> u64;
}
Expand description

Supplies Unix timestamps in milliseconds at an application boundary.

Required Methods§

Source

fn now_ms(&self) -> u64

Returns the current Unix timestamp in milliseconds.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§