Struct prometheus::core::GenericCounter [] [src]

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

The underlying implementation for Counter and IntCounter.

Methods

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

[src]

Create a GenericCounter with the name and help arguments.

[src]

Create a GenericCounter with the opts options.

[src]

Increase the given value to the counter.

Panics

Panics in debug build if the value is < 0.

[src]

Increase the counter by 1.

[src]

Return the counter value.

[src]

Return a GenericLocalCounter for single thread usage.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<P: Atomic> Collector for GenericCounter<P>
[src]

[src]

Return descriptors for metrics.

[src]

Collect metrics.

impl<P: Atomic> Metric for GenericCounter<P>
[src]

[src]

Return the protocol Metric.

Auto Trait Implementations

impl<P> Send for GenericCounter<P>

impl<P> Sync for GenericCounter<P>