Skip to main content

Clock

Trait Clock 

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

Clock abstraction so tests can pin timestamps.

Required Methods§

Source

fn now_iso(&self) -> String

Return the current RFC 3339 UTC timestamp string (millisecond precision).

Implementors§