pub struct RateStats {
pub total_events: u64,
pub per_second: f64,
pub per_minute: f64,
pub per_hour: f64,
pub average_rate: f64,
pub age: Duration,
pub window_fill: f64,
}Expand description
Rate statistics
Fields§
§total_events: u64Total events recorded
per_second: f64Events per second (current window)
per_minute: f64Events per minute (current window)
per_hour: f64Events per hour (current window)
average_rate: f64Average rate since creation
age: DurationTime since creation
window_fill: f64Current window fill percentage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateStats
impl RefUnwindSafe for RateStats
impl Send for RateStats
impl Sync for RateStats
impl Unpin for RateStats
impl UnwindSafe for RateStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more