Struct prometheus::core::GenericGauge [−][src]
pub struct GenericGauge<P: Atomic> { /* fields omitted */ }
Implementations
Create a GenericGauge
with the name
and help
arguments.
Create a GenericGauge
with the opts
options.
Add the given value to the gauge. (The value can be negative, resulting in a decrement of the gauge.)
Subtract the given value from the gauge. (The value can be negative, resulting in an increment of the gauge.)
Trait Implementations
Auto Trait Implementations
impl<P> RefUnwindSafe for GenericGauge<P> where
P: RefUnwindSafe,
impl<P> Send for GenericGauge<P>
impl<P> Sync for GenericGauge<P>
impl<P> Unpin for GenericGauge<P>
impl<P> UnwindSafe for GenericGauge<P> where
P: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more