pub trait InstantContext: InstantBindingsTypes {
    // Required method
    fn now(&self) -> Self::Instant;
}
Expand description

A context that provides access to a monotonic clock.

Required Methods§

source

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

Returns the current instant.

now guarantees that two subsequent calls to now will return monotonically non-decreasing values.

Implementors§