Skip to main content

SpendClock

Trait SpendClock 

Source
pub trait SpendClock: Send + Sync {
    // Required method
    fn now_ms(&self) -> i64;
}
Expand description

The time the journal reads to choose a period. Injected, so tests can cross a month boundary.

Required Methods§

Source

fn now_ms(&self) -> i64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§