pub trait Clock: Send + Sync {
// Required method
fn now(&self) -> LogicalTime;
}Expand description
A source of LogicalTime.
Implementations must be cheap to call and thread-safe; emission/gating logic
may poll now() frequently.
Required Methods§
Sourcefn now(&self) -> LogicalTime
fn now(&self) -> LogicalTime
The current logical instant.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".