Struct sp_utils::metrics::TOKIO_THREADS_TOTAL [−][src]
pub struct TOKIO_THREADS_TOTAL { /* fields omitted */ }Methods from Deref<Target = GenericCounter<AtomicU64>>
pub fn inc_by(&self, v: <P as Atomic>::T)[src]
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]
impl Deref for TOKIO_THREADS_TOTAL[src]type Target = GenericCounter<AtomicU64>
The resulting type after dereferencing.
fn deref(&self) -> &GenericCounter<AtomicU64>[src]
impl LazyStatic for TOKIO_THREADS_TOTAL[src]
impl LazyStatic for TOKIO_THREADS_TOTAL[src]