Skip to main content

LogicalClock

Trait LogicalClock 

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

Injectable logical time source for event adapters and deterministic tests.

Required Methods§

Source

fn now_ms(&self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§