dwd/ui/metric.rs
use core::fmt::Display;
pub use self::{gauge::Gauge, meter::Meter, throughput::Throughput};
mod gauge;
mod meter;
mod throughput;
/// Stateful metric that can display itself.
pub trait Metric
where
Self: Display,
{
/// Updates this metric.
fn update(&mut self);
}