[][src]Struct open_metrics_client::gauge::Gauge

pub struct Gauge<A> { /* fields omitted */ }

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]

impl<A> Default for Gauge<A> where
    A: Default
[src]

impl<A> EncodeMetric for Gauge<A> where
    A: Atomic,
    <A as Atomic>::Number: Encode
[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Gauge<A> where
    A: RefUnwindSafe
[src]

impl<A> Send for Gauge<A> where
    A: Send + Sync
[src]

impl<A> Sync for Gauge<A> where
    A: Send + Sync
[src]

impl<A> Unpin for Gauge<A>[src]

impl<A> UnwindSafe for Gauge<A> where
    A: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.