obeli_sk_utils::time

Trait ClockFn

Source
pub trait ClockFn:
    Send
    + Sync
    + Clone {
    // Required method
    fn now(&self) -> DateTime<Utc>;
}

Required Methods§

Source

fn now(&self) -> DateTime<Utc>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§