Struct prometheus::core::GenericLocalCounter [] [src]

pub struct GenericLocalCounter<P: Atomic> { /* fields omitted */ }

The underlying implementation for LocalCounter and LocalIntCounter.

Methods

impl<P: Atomic> GenericLocalCounter<P>
[src]

[src]

Increase the given value to the local counter.

Panics

Panics in debug build if the value is < 0.

[src]

Increase the local counter by 1.

[src]

Return the local counter value.

[src]

Flush the local metrics to the Counter.

Trait Implementations

impl<P: Atomic> Clone for GenericLocalCounter<P>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<P> Send for GenericLocalCounter<P> where
    <P as Atomic>::T: Send

impl<P> Sync for GenericLocalCounter<P> where
    <P as Atomic>::T: Sync