Struct epimetheus::Metric
source · [−]pub struct Metric {
pub name: &'static str,
pub labels: Vec<(&'static str, Box<dyn Display + Send>)>,
}
Expand description
A named metric; it has a associated global mutable f64
value.
You can create these by hand, but you might find it more convenient to
use the metric!()
macro.
Fields
name: &'static str
labels: Vec<(&'static str, Box<dyn Display + Send>)>
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Metric
impl Send for Metric
impl !Sync for Metric
impl Unpin for Metric
impl !UnwindSafe for Metric
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