Skip to main content

Clock

Trait Clock 

Source
pub trait Clock {
    // Required method
    fn now(&self) -> Instant;
}
Expand description

Time source for the controller, injectable so hysteresis is testable without sleeping.

Required Methods§

Source

fn now(&self) -> Instant

Current monotonic instant.

Implementors§