pub struct RingMetricsSnapshot {
pub enqueue_success: u64,
pub enqueue_fail: u64,
pub dequeue_success: u64,
pub dequeue_fail: u64,
pub max_depth_observed: u64,
pub cas_retries: u64,
}Expand description
Snapshot value-type returned by RingMetrics::snapshot. Clone + Copy so
callers can stash + compare across calls.
Fields§
§enqueue_success: u64§enqueue_fail: u64§dequeue_success: u64§dequeue_fail: u64§max_depth_observed: u64§cas_retries: u64Trait Implementations§
Source§impl Clone for RingMetricsSnapshot
impl Clone for RingMetricsSnapshot
Source§fn clone(&self) -> RingMetricsSnapshot
fn clone(&self) -> RingMetricsSnapshot
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 moreimpl Copy for RingMetricsSnapshot
Source§impl Debug for RingMetricsSnapshot
impl Debug for RingMetricsSnapshot
Source§impl Default for RingMetricsSnapshot
impl Default for RingMetricsSnapshot
Source§fn default() -> RingMetricsSnapshot
fn default() -> RingMetricsSnapshot
Returns the “default value” for a type. Read more
impl Eq for RingMetricsSnapshot
Source§impl PartialEq for RingMetricsSnapshot
impl PartialEq for RingMetricsSnapshot
impl StructuralPartialEq for RingMetricsSnapshot
Auto Trait Implementations§
impl Freeze for RingMetricsSnapshot
impl RefUnwindSafe for RingMetricsSnapshot
impl Send for RingMetricsSnapshot
impl Sync for RingMetricsSnapshot
impl Unpin for RingMetricsSnapshot
impl UnsafeUnpin for RingMetricsSnapshot
impl UnwindSafe for RingMetricsSnapshot
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