Trait governor::clock::ReasonablyRealtime
source · pub trait ReasonablyRealtime: Clock {
// Provided method
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§
sourcefn reference_point(&self) -> Self::Instant
fn reference_point(&self) -> Self::Instant
Returns a reference point at the start of an operation.
Object Safety§
This trait is not object safe.