Struct CounterSnapshot
pub struct CounterSnapshot { /* private fields */ }Implementations§
§impl CounterSnapshot
impl CounterSnapshot
pub fn new() -> CounterSnapshot
pub fn tick(&mut self, now: Instant) -> Rates
Trait Implementations§
§impl Default for CounterSnapshot
impl Default for CounterSnapshot
§fn default() -> CounterSnapshot
fn default() -> CounterSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CounterSnapshot
impl RefUnwindSafe for CounterSnapshot
impl Send for CounterSnapshot
impl Sync for CounterSnapshot
impl Unpin for CounterSnapshot
impl UnwindSafe for CounterSnapshot
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