Trait augrim::Time

source ·
pub trait Time: Add<Duration, Output = Self> + PartialOrd + Copy + Debug { }
Expand description

A specific instant in time.

Algorithms which use time, common for implementing timeouts, define time using this trait. The user of the algorithm can implement this Time trait on the specific type desired for their application.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Time for SystemTime

SystemTime can be used directly as Time. See also SystemTimeFactory.

Implementors§