Trait augrim::TimeSource

source ·
pub trait TimeSource {
    type Time: Time;

    // Required method
    fn now(&self) -> Self::Time;
}
Expand description

A factory for getting the current time.

This factory is used by algorithms which need to get the current time (for example, to determine if a timeout has occurred). Any implementations of Time will likely need to also implement this trait as well.

Required Associated Types§

Required Methods§

source

fn now(&self) -> Self::Time

Return the current time.

Implementors§