dwd/ui/
metric.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}