pub struct SimpleGauge {
name: String,
gauge: UpDownCounter<f64>,
shadow: AtomicF64,
}Expand description
Represents a simple gauge with floating point values.
Fields§
§name: String§gauge: UpDownCounter<f64>§shadow: AtomicF64Implementations§
Source§impl SimpleGauge
impl SimpleGauge
Sourcepub fn new(name: &str, description: &str) -> MetricResult<Self>
pub fn new(name: &str, description: &str) -> MetricResult<Self>
Creates a new gauge with given name and description.
Auto Trait Implementations§
impl !Freeze for SimpleGauge
impl !RefUnwindSafe for SimpleGauge
impl Send for SimpleGauge
impl Sync for SimpleGauge
impl Unpin for SimpleGauge
impl !UnwindSafe for SimpleGauge
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