Struct tokio::util::metric_atomics::MetricAtomicUsize
source · pub(crate) struct MetricAtomicUsize {
value: AtomicUsize,
}
Expand description
AtomicUsize
for use in metrics.
This exposes simplified APIs for use in metrics & uses std::sync
instead of Loom to avoid polluting loom logs with metric information.
Fields§
§value: AtomicUsize
Implementations§
Trait Implementations§
source§impl Debug for MetricAtomicUsize
impl Debug for MetricAtomicUsize
source§impl Default for MetricAtomicUsize
impl Default for MetricAtomicUsize
source§fn default() -> MetricAtomicUsize
fn default() -> MetricAtomicUsize
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MetricAtomicUsize
impl RefUnwindSafe for MetricAtomicUsize
impl Send for MetricAtomicUsize
impl Sync for MetricAtomicUsize
impl Unpin for MetricAtomicUsize
impl UnwindSafe for MetricAtomicUsize
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