Trait mas_storage::clock::Clock

source ·
pub trait Clock: Sync {
    // Required method
    fn now(&self) -> DateTime<Utc>;
}
Expand description

Represents a clock which can give the current date and time

Required Methods§

source

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

Get the current date and time

Implementations on Foreign Types§

source§

impl<C: Clock + Send + ?Sized> Clock for Arc<C>

source§

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

source§

impl<C: Clock + ?Sized> Clock for Box<C>

source§

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

Implementors§