[][src]Struct sp_utils::metrics::TOKIO_THREADS_TOTAL

pub struct TOKIO_THREADS_TOTAL { /* fields omitted */ }

Methods from Deref<Target = GenericCounter<AtomicU64>>

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

Increase the given value to the counter.

Panics

Panics in debug build if the value is < 0.

pub fn inc(&self)[src]

Increase the counter by 1.

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

Return the counter value.

pub fn reset(&self)[src]

Restart the counter, resetting its value back to 0.

pub fn local(&self) -> GenericLocalCounter<P>[src]

Return a GenericLocalCounter for single thread usage.

Trait Implementations

impl Deref for TOKIO_THREADS_TOTAL[src]

type Target = GenericCounter<AtomicU64>

The resulting type after dereferencing.

impl LazyStatic for TOKIO_THREADS_TOTAL[src]

Auto Trait Implementations

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.