pub trait Clock {
    // Required method
    fn get_time(&self) -> Timestamp;
}
Expand description

A Clock is a source of Timestamps.

Required Methods§

source

fn get_time(&self) -> Timestamp

Returns the current Timestamp

Implementations on Foreign Types§

source§

impl<C: 'static + Clock> Clock for &'static LocalKey<C>

Implementors§