Struct sp_utils::metrics::TOKIO_THREADS_ALIVE[][src]

pub struct TOKIO_THREADS_ALIVE { /* fields omitted */ }

Methods from Deref<Target = GenericGauge<AtomicU64>>

pub fn set(&self, v: <P as Atomic>::T)[src]

Set the gauge to an arbitrary value.

pub fn inc(&self)[src]

Increase the gauge by 1.

pub fn dec(&self)[src]

Decrease the gauge by 1.

pub fn add(&self, v: <P as Atomic>::T)[src]

Add the given value to the gauge. (The value can be negative, resulting in a decrement of the gauge.)

pub fn sub(&self, v: <P as Atomic>::T)[src]

Subtract the given value from the gauge. (The value can be negative, resulting in an increment of the gauge.)

pub fn get(&self) -> <P as Atomic>::T[src]

Return the gauge value.

Trait Implementations

impl Deref for TOKIO_THREADS_ALIVE[src]

type Target = GenericGauge<AtomicU64>

The resulting type after dereferencing.

impl LazyStatic for TOKIO_THREADS_ALIVE[src]

Auto Trait Implementations

impl RefUnwindSafe for TOKIO_THREADS_ALIVE

impl Send for TOKIO_THREADS_ALIVE

impl Sync for TOKIO_THREADS_ALIVE

impl Unpin for TOKIO_THREADS_ALIVE

impl UnwindSafe for TOKIO_THREADS_ALIVE

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> From<T> for T[src]

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

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.