Struct prometheus::core::GenericLocalCounter
source · [−]pub struct GenericLocalCounter<P: Atomic> { /* private fields */ }
Expand description
The underlying implementation for LocalCounter
and LocalIntCounter
.
Implementations
Trait Implementations
sourceimpl<P: Atomic> Clone for GenericLocalCounter<P>
impl<P: Atomic> Clone for GenericLocalCounter<P>
sourceimpl<P: Atomic> CounterWithValueType for GenericLocalCounter<P>
impl<P: Atomic> CounterWithValueType for GenericLocalCounter<P>
type ValueType = P
type ValueType = P
the exact type which implements Atomic
sourceimpl<P: Atomic> LocalMetric for GenericLocalCounter<P>
impl<P: Atomic> LocalMetric for GenericLocalCounter<P>
Auto Trait Implementations
impl<P> !RefUnwindSafe for GenericLocalCounter<P>
impl<P> Send for GenericLocalCounter<P>
impl<P> !Sync for GenericLocalCounter<P>
impl<P> Unpin for GenericLocalCounter<P>where
<P as Atomic>::T: Unpin,
impl<P> UnwindSafe for GenericLocalCounter<P>where
P: RefUnwindSafe,
<P as Atomic>::T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more