Struct Rate
pub struct Rate { /* private fields */ }
A rate of requests per time period.
Implementations
impl Rate
const fn new(num: u64, per: Duration) -> SelfCreate a new rate.
Panics
This function panics if
numorperis 0.
Trait Implementations
impl Clone for Rate
fn clone(&self) -> Self
impl Copy for Rate
impl Debug for Rate
fn fmt(&self, f: &mut Formatter<'_>) -> Result