pub struct RecordedCounter {
pub name: String,
pub labels: Vec<(String, String)>,
pub value: f64,
}Expand description
Captured counter increment.
Fields§
§name: StringMetric name.
labels: Vec<(String, String)>Label key/value pairs.
value: f64Increment amount.
Trait Implementations§
Source§impl Clone for RecordedCounter
impl Clone for RecordedCounter
Source§fn clone(&self) -> RecordedCounter
fn clone(&self) -> RecordedCounter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordedCounter
impl Debug for RecordedCounter
Source§impl PartialEq for RecordedCounter
impl PartialEq for RecordedCounter
impl StructuralPartialEq for RecordedCounter
Auto Trait Implementations§
impl Freeze for RecordedCounter
impl RefUnwindSafe for RecordedCounter
impl Send for RecordedCounter
impl Sync for RecordedCounter
impl Unpin for RecordedCounter
impl UnsafeUnpin for RecordedCounter
impl UnwindSafe for RecordedCounter
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