Enum rtrtr::metrics::MetricUnit
source ·
[−]pub enum MetricUnit {
Second,
Celsius,
Meter,
Byte,
Ratio,
Volt,
Ampere,
Joule,
Gram,
Total,
Info,
}
Expand description
A unit of measure for a metric.
This determines what a value of 1 means.
Variants
Second
Celsius
Meter
Byte
Ratio
Volt
Ampere
Joule
Gram
Total
Use this for counting things.
Info
Use this for non-numerical metrics.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MetricUnit
impl Send for MetricUnit
impl Sync for MetricUnit
impl Unpin for MetricUnit
impl UnwindSafe for MetricUnit
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more