dwd/ui/metric.rs
1use core::fmt::Display;
2
3pub use self::{gauge::Gauge, meter::Meter, quantile::Quantile, throughput::Throughput};
4
5mod gauge;
6mod meter;
7mod quantile;
8mod throughput;
9
10/// Stateful metric that can display itself.
11pub trait Metric
12where
13 Self: Display,
14{
15 /// Updates this metric.
16 fn update(&mut self);
17}