pub struct WindowedCount { /* private fields */ }Expand description
A SampledStat that maintains a simple count of what it has seen. This is
a special kind of crate::common::metrics::stats::WindowedSum that always
records a value of 1 instead of the provided value. In other words, it
counts the number of record invocations, instead of summing the recorded
values.
See also crate::common::metrics::stats::CumulativeCount for a non-sampled
version of this metric.
Implementations§
Source§impl WindowedCount
impl WindowedCount
Trait Implementations§
Source§impl Default for WindowedCount
impl Default for WindowedCount
Source§impl Measurable for WindowedCount
impl Measurable for WindowedCount
Auto Trait Implementations§
impl !Freeze for WindowedCount
impl !RefUnwindSafe for WindowedCount
impl Send for WindowedCount
impl Sync for WindowedCount
impl Unpin for WindowedCount
impl UnsafeUnpin for WindowedCount
impl !UnwindSafe for WindowedCount
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