pub trait Clock: Send + Sync {
// Required method
fn now(&self) -> OffsetDateTime;
}Expand description
Where the server gets the time.
Required Methods§
Sourcefn now(&self) -> OffsetDateTime
fn now(&self) -> OffsetDateTime
The time now, in UTC.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".