pub struct DhtRuntimeStats { /* private fields */ }Expand description
Cheap, cloneable handle for reading live DHT runtime statistics.
Implementations§
Source§impl DhtRuntimeStats
impl DhtRuntimeStats
Sourcepub fn snapshot(&self) -> DhtRuntimeSnapshot
pub fn snapshot(&self) -> DhtRuntimeSnapshot
Load every exposed value once using relaxed atomics. Loads the core runtime counters and gauges using relaxed atomics.
Sourcepub fn observability_snapshot(&self) -> DhtObservabilitySnapshot
pub fn observability_snapshot(&self) -> DhtObservabilitySnapshot
Loads detailed transport counters, failure categories and fixed histograms.
Trait Implementations§
Source§impl Clone for DhtRuntimeStats
impl Clone for DhtRuntimeStats
Source§fn clone(&self) -> DhtRuntimeStats
fn clone(&self) -> DhtRuntimeStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DhtRuntimeStats
impl Default for DhtRuntimeStats
Source§fn default() -> DhtRuntimeStats
fn default() -> DhtRuntimeStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DhtRuntimeStats
impl RefUnwindSafe for DhtRuntimeStats
impl Send for DhtRuntimeStats
impl Sync for DhtRuntimeStats
impl Unpin for DhtRuntimeStats
impl UnsafeUnpin for DhtRuntimeStats
impl UnwindSafe for DhtRuntimeStats
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