pub trait TimeProvider: Send + Sync {
// Required method
fn now(&self) -> Instant;
}Expand description
Source of the current time used by a DefaultCache when applying TTLs.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".