[][src]Trait governor::clock::ReasonablyRealtime

pub trait ReasonablyRealtime: Clock {
    fn reference_point(&self) -> Self::Instant { ... }
}

Identifies clocks that run similarly to the monotonic realtime clock.

Clocks implementing this trait can be used with rate-limiters functions that operate asynchronously.

Provided methods

fn reference_point(&self) -> Self::Instant[src]

Returns a reference point at the start of an operation.

Loading content...

Implementors

impl ReasonablyRealtime for MonotonicClock[src]

impl ReasonablyRealtime for QuantaClock[src]

impl ReasonablyRealtime for SystemClock[src]

Loading content...