pub struct WindowedSum { /* private fields */ }Expand description
A SampledStat that maintains the sum of what it has seen. This is a
sampled version of crate::common::metrics::stats::CumulativeSum.
See also crate::common::metrics::stats::WindowedCount if you want to
increment the value by 1 on each recording.
Implementations§
Source§impl WindowedSum
impl WindowedSum
Trait Implementations§
Source§impl Debug for WindowedSum
impl Debug for WindowedSum
Source§impl Default for WindowedSum
impl Default for WindowedSum
Source§impl Display for WindowedSum
impl Display for WindowedSum
Source§impl Measurable for WindowedSum
impl Measurable for WindowedSum
Auto Trait Implementations§
impl !Freeze for WindowedSum
impl !RefUnwindSafe for WindowedSum
impl Send for WindowedSum
impl Sync for WindowedSum
impl Unpin for WindowedSum
impl UnsafeUnpin for WindowedSum
impl !UnwindSafe for WindowedSum
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