Struct sp_utils::metrics::TOKIO_THREADS_TOTAL [−][src]
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]
type Target = GenericCounter<AtomicU64>
The resulting type after dereferencing.
fn deref(&self) -> &GenericCounter<AtomicU64>
[src]
impl LazyStatic for TOKIO_THREADS_TOTAL
[src]
fn initialize(lazy: &Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for TOKIO_THREADS_TOTAL
impl Send for TOKIO_THREADS_TOTAL
impl Sync for TOKIO_THREADS_TOTAL
impl Unpin for TOKIO_THREADS_TOTAL
impl UnwindSafe for TOKIO_THREADS_TOTAL
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,