pub struct MetricsSnapshot {
pub dropped_sends: u64,
pub reaped_quorums: u64,
pub put_acks_seen: u64,
pub put_acks_quorum: u64,
pub messages_parsed: u64,
pub messages_relayed: u64,
pub messages_dropped_dup: u64,
pub serialization_calls: u64,
pub subscriber_fanout_total: u64,
pub ws_messages_received: u64,
pub ws_messages_sent: u64,
pub messages_dropped_ham: u64,
}Expand description
Plain-old-data snapshot of Metrics for safe export across threads.
This is Copy because it holds plain u64 values — no atomics,
no references. Safe to log, serialize, or send over a channel.
Note: snapshot is non-atomic across counters — values may be slightly inconsistent (one counter advanced, another not yet). This is acceptable for telemetry; do not use for control flow.
Fields§
§dropped_sends: u64§reaped_quorums: u64§put_acks_seen: u64§put_acks_quorum: u64§messages_parsed: u64§messages_relayed: u64§messages_dropped_dup: u64§serialization_calls: u64§subscriber_fanout_total: u64§ws_messages_received: u64§ws_messages_sent: u64§messages_dropped_ham: u64Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
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 MetricsSnapshot
Source§impl Debug for MetricsSnapshot
impl Debug for MetricsSnapshot
impl Eq for MetricsSnapshot
Source§impl PartialEq for MetricsSnapshot
impl PartialEq for MetricsSnapshot
Source§impl Serialize for MetricsSnapshot
impl Serialize for MetricsSnapshot
impl StructuralPartialEq for MetricsSnapshot
Auto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnsafeUnpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.