Skip to main content

Clock

Type Alias Clock 

Source
pub type Clock = Box<dyn Fn() -> DateTime<Utc> + Send>;
Expand description

Pluggable wall-clock. Defaults to Utc::now; tests inject a controllable clock to verify τ-decay without sleeping.

Aliased Type§

pub struct Clock(/* private fields */);