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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.