pub trait Clock:
Debug
+ Send
+ Sync {
// Required method
fn now(&self) -> u64;
}Expand description
A monotonic-ish source of “seconds since epoch” used by the agent for
pending-queue timestamps. Implementations must be Debug + Send + Sync
so the agent (which derives Debug and may move across threads) can
hold an Arc<dyn Clock>.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".