[−][src]Struct open_metrics_client::gauge::Gauge
Implementations
impl<A: Atomic> Gauge<A>[src]
pub fn new() -> Self[src]
pub fn inc(&self) -> A::Number[src]
pub fn inc_by(&self, v: A::Number) -> A::Number[src]
pub fn set(&self, v: A::Number) -> A::Number[src]
pub fn get(&self) -> A::Number[src]
Trait Implementations
impl<A> Clone for Gauge<A>[src]
pub fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<A> Default for Gauge<A> where
A: Default, [src]
A: Default,
impl<A> EncodeMetric for Gauge<A> where
A: Atomic,
<A as Atomic>::Number: Encode, [src]
A: Atomic,
<A as Atomic>::Number: Encode,
Auto Trait Implementations
impl<A> RefUnwindSafe for Gauge<A> where
A: RefUnwindSafe, [src]
A: RefUnwindSafe,
impl<A> Send for Gauge<A> where
A: Send + Sync, [src]
A: Send + Sync,
impl<A> Sync for Gauge<A> where
A: Send + Sync, [src]
A: Send + Sync,
impl<A> Unpin for Gauge<A>[src]
impl<A> UnwindSafe for Gauge<A> where
A: RefUnwindSafe, [src]
A: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Erased for T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,