pub struct RingMetrics {
pub slot_reuse_count: AtomicU64,
pub slot_contention_events: AtomicU64,
pub slot_first_use_count: AtomicU64,
}Expand description
Atomic counters for output ring buffer activity.
Fields§
§slot_reuse_count: AtomicU64Successful slot reuses (slot was free, strong_count == 1).
slot_contention_events: AtomicU64Times acquire() found a slot still held downstream (strong_count > 1).
slot_first_use_count: AtomicU64Times a slot was acquired but it was the first use (not a reuse).
Implementations§
Source§impl RingMetrics
impl RingMetrics
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Create a new zeroed RingMetrics.
Sourcepub fn snapshot(&self) -> RingMetricsSnapshot
pub fn snapshot(&self) -> RingMetricsSnapshot
Returns a point-in-time snapshot of all ring counters.
Trait Implementations§
Source§impl Debug for RingMetrics
impl Debug for RingMetrics
Auto Trait Implementations§
impl !Freeze for RingMetrics
impl RefUnwindSafe for RingMetrics
impl Send for RingMetrics
impl Sync for RingMetrics
impl Unpin for RingMetrics
impl UnsafeUnpin for RingMetrics
impl UnwindSafe for RingMetrics
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