Struct prometheus_endpoint::Counter [−][src]
pub struct Counter<P> where
P: Atomic, { /* fields omitted */ }
Expand description
The underlying implementation for Counter
and IntCounter
.
Implementations
Create a GenericCounter
with the name
and help
arguments.
Create a GenericCounter
with the opts
options.
Return a GenericLocalCounter
for single thread usage.
Trait Implementations
Auto Trait Implementations
impl<P> RefUnwindSafe for GenericCounter<P> where
P: RefUnwindSafe,
impl<P> Send for GenericCounter<P>
impl<P> Sync for GenericCounter<P>
impl<P> Unpin for GenericCounter<P>
impl<P> UnwindSafe for GenericCounter<P> where
P: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more