Skip to main content

Clock

Trait Clock 

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

Abstraction over SystemTime::now() for testability.

Required Methods§

Source

fn now(&self) -> SystemTime

Implementors§