pub struct AtomicCounter(/* private fields */);
Implementations§
Trait Implementations§
Source§impl AtomicCounterEntry for AtomicCounter
impl AtomicCounterEntry for AtomicCounter
AtomicCounter is a direct store of the underlying counter value. No pruning is required for this type of value.
Source§fn resolve(&self) -> Option<AtomicCounter>
fn resolve(&self) -> Option<AtomicCounter>
resolve this entry to an AtomicCounter instance
Source§fn make_storable(strong: &AtomicCounter) -> AtomicCounter
fn make_storable(strong: &AtomicCounter) -> AtomicCounter
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 AtomicCounter
impl Clone for AtomicCounter
Source§fn clone(&self) -> AtomicCounter
fn clone(&self) -> AtomicCounter
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 moreSource§impl Debug for AtomicCounter
impl Debug for AtomicCounter
Auto Trait Implementations§
impl Freeze for AtomicCounter
impl RefUnwindSafe for AtomicCounter
impl Send for AtomicCounter
impl Sync for AtomicCounter
impl Unpin for AtomicCounter
impl UnwindSafe for AtomicCounter
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