Skip to main content

GithubReadClock

Trait GithubReadClock 

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

Clock seam used to make freshness boundaries deterministic in tests.

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§