Skip to main content

Clock

Trait Clock 

Source
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§

Source

fn now(&self) -> DateTime<Utc>

The current instant, in UTC.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§