Skip to main content

Clock

Trait Clock 

Source
pub trait Clock:
    Send
    + Sync
    + 'static
    + Debug {
    // Required method
    fn now(&self) -> u64;
}

Required Methods§

Source

fn now(&self) -> u64

Implementations on Foreign Types§

Source§

impl<T: Clock> Clock for Arc<T>

Source§

fn now(&self) -> u64

Implementors§