Skip to main content

Clock

Trait Clock 

Source
pub trait Clock: Send + Sync {
    // Required method
    fn now(&self) -> String;
}
Expand description

Where the engine reads the time. It reads it once per request: that reading is the issued of every receipt the request signs, and the request’s asof when none is given.

Required Methods§

Source

fn now(&self) -> String

The current time as an instant (SPEC 3.3, YYYY-MM-DDTHH:MM:SS.ffffffZ, UTC).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§