Trait governor::clock::ReasonablyRealtime [−][src]
pub trait ReasonablyRealtime: Clock {
fn reference_point(&self) -> Self::Instant { ... }
}
Expand description
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
fn reference_point(&self) -> Self::Instant
Returns a reference point at the start of an operation.