Trait 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§

Source

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

Returns a reference point at the start of an operation.

Implementors§