Enum prometheus_client::registry::Unit
source · [−]pub enum Unit {
Amperes,
Bytes,
Celsius,
Grams,
Joules,
Meters,
Ratios,
Seconds,
Volts,
Other(String),
}
Expand description
Metric units recommended by Open Metrics.
See Unit::Other
to specify alternative units.
Variants
Amperes
Bytes
Celsius
Grams
Joules
Meters
Ratios
Seconds
Volts
Other(String)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more