Struct kumo_prometheus::WeakAtomicCounter
source · pub struct WeakAtomicCounter(/* private fields */);
Implementations§
source§impl WeakAtomicCounter
impl WeakAtomicCounter
pub fn upgrade(&self) -> Option<AtomicCounter>
Trait Implementations§
source§impl AtomicCounterEntry for WeakAtomicCounter
impl AtomicCounterEntry for WeakAtomicCounter
WeakAtomicCounter stores values as weak references and thus requires pruning.
source§fn resolve(&self) -> Option<AtomicCounter>
fn resolve(&self) -> Option<AtomicCounter>
resolve this entry to an AtomicCounter instance
source§fn make_storable(strong: &AtomicCounter) -> WeakAtomicCounter
fn make_storable(strong: &AtomicCounter) -> WeakAtomicCounter
Given a new strong AtomicCounter reference, return Self
suitable for storing in the counter registry
source§fn needs_pruning() -> bool
fn needs_pruning() -> bool
Indicate whether this type of value requires pruning the
containing counter registry
source§impl Clone for WeakAtomicCounter
impl Clone for WeakAtomicCounter
source§fn clone(&self) -> WeakAtomicCounter
fn clone(&self) -> WeakAtomicCounter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for WeakAtomicCounter
impl RefUnwindSafe for WeakAtomicCounter
impl Send for WeakAtomicCounter
impl Sync for WeakAtomicCounter
impl Unpin for WeakAtomicCounter
impl UnwindSafe for WeakAtomicCounter
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)