pub struct Metric { /* private fields */ }
Expand description
A metric with a value
This is what gets emitted to the Falco Plugin API (after a conversion to the required format)
Implementations§
Source§impl Metric
impl Metric
Sourcepub fn new(label: MetricLabel, value: MetricValue) -> Self
pub fn new(label: MetricLabel, value: MetricValue) -> Self
Create a new metric, combining a label with a corresponding value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnwindSafe for Metric
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more