[][src]Trait exonum_time::TimeProvider

pub trait TimeProvider: Send + Sync + Debug {
    fn current_time(&self) -> DateTime<Utc>;
}

A helper trait that provides the node with a current time.

Required methods

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

Returns the current time.

Loading content...

Implementors

impl TimeProvider for MockTimeProvider[src]

impl TimeProvider for SystemTimeProvider[src]

Loading content...