pub trait Clock:
Send
+ Sync
+ 'static {
// Required method
fn now(&self) -> Instant;
}Expand description
Wall-clock abstraction so the bucket can be exercised in tests
without sleeping. Only now() is on the trait surface; every
internal math op is pure and does not need further mocking.