pub struct CumulativeCount { /* private fields */ }Expand description
A non-sampled version of WindowedCount maintained over all time.
This is a special kind of CumulativeSum that always records 1 instead
of the provided value. In other words, it counts the number of record
invocations, instead of summing the recorded values.
Implementations§
Trait Implementations§
Source§impl Debug for CumulativeCount
impl Debug for CumulativeCount
Source§impl Default for CumulativeCount
impl Default for CumulativeCount
Source§impl Display for CumulativeCount
impl Display for CumulativeCount
Source§impl Measurable for CumulativeCount
impl Measurable for CumulativeCount
Auto Trait Implementations§
impl !Freeze for CumulativeCount
impl RefUnwindSafe for CumulativeCount
impl Send for CumulativeCount
impl Sync for CumulativeCount
impl Unpin for CumulativeCount
impl UnsafeUnpin for CumulativeCount
impl UnwindSafe for CumulativeCount
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
Source§impl<M> MetricValueProvider for Mwhere
M: Measurable,
impl<M> MetricValueProvider for Mwhere
M: Measurable,
Source§fn value(&self, config: &MetricConfig, now: i64) -> MetricValue
fn value(&self, config: &MetricConfig, now: i64) -> MetricValue
Returns the current value associated with this metric. Read more
Source§fn type_name(&self) -> Option<&'static str>
fn type_name(&self) -> Option<&'static str>
Returns the provider’s type name, as
KafkaMetric’s Display reports
it, or None for a provider that is a closure. Read more