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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more