Struct prometheus::core::GenericLocalCounter
source · pub struct GenericLocalCounter<P: Atomic> { /* private fields */ }
Expand description
The underlying implementation for LocalCounter
and LocalIntCounter
.
Implementations§
Trait Implementations§
source§impl<P: Atomic> Clone for GenericLocalCounter<P>
impl<P: Atomic> Clone for GenericLocalCounter<P>
source§impl<P: Atomic> CounterWithValueType for GenericLocalCounter<P>
impl<P: Atomic> CounterWithValueType for GenericLocalCounter<P>
source§impl<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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more