pub struct Counter {
pub name: String,
pub labels: Labels,
pub value: f64,
}Expand description
A Counter metric - monotonically increasing value.
Fields§
§name: StringMetric name (e.g., “requests_total”).
labels: LabelsLabels for the metric.
value: f64Current counter value.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnsafeUnpin for Counter
impl UnwindSafe for Counter
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