Struct cargo::util::counter::MetricsCounter
source · Expand description
A metrics counter storing only latest N
records.
Fields§
§slots: [(usize, Instant); N]
Slots to store metrics.
index: usize
The slot of the oldest record. Also the next slot to store the new record.
Implementations§
source§impl<const N: usize> MetricsCounter<N>
impl<const N: usize> MetricsCounter<N>
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for MetricsCounter<N>
impl<const N: usize> Send for MetricsCounter<N>
impl<const N: usize> Sync for MetricsCounter<N>
impl<const N: usize> Unpin for MetricsCounter<N>
impl<const N: usize> UnwindSafe for MetricsCounter<N>
Blanket Implementations§
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.