pub trait Clock: Send + Sync {
// Required method
fn now(&self) -> DateTime<Utc>;
}Expand description
Source of wall-clock time for a ceremony run.
Implementations must be cheap to call (read once per emitted fact) and
thread-safe: the executor runs on its own thread and shares the clock with
the Reporter.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".