pub struct ProtocolMetricsSnapshot {
pub connections_total: u64,
pub connections_active: u64,
pub messages_total: u64,
pub errors_total: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
pub avg_latency_micros: u64,
}Expand description
Point-in-time snapshot of protocol metrics with plain u64 values.
Fields§
§connections_total: u64Total connections ever established
connections_active: u64Currently active connections
messages_total: u64Total messages processed
errors_total: u64Total errors encountered
bytes_sent: u64Total bytes sent
bytes_received: u64Total bytes received
avg_latency_micros: u64Average latency in microseconds
Trait Implementations§
Source§impl Clone for ProtocolMetricsSnapshot
impl Clone for ProtocolMetricsSnapshot
Source§fn clone(&self) -> ProtocolMetricsSnapshot
fn clone(&self) -> ProtocolMetricsSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtocolMetricsSnapshot
impl Debug for ProtocolMetricsSnapshot
Source§impl PartialEq for ProtocolMetricsSnapshot
impl PartialEq for ProtocolMetricsSnapshot
impl Eq for ProtocolMetricsSnapshot
impl StructuralPartialEq for ProtocolMetricsSnapshot
Auto Trait Implementations§
impl Freeze for ProtocolMetricsSnapshot
impl RefUnwindSafe for ProtocolMetricsSnapshot
impl Send for ProtocolMetricsSnapshot
impl Sync for ProtocolMetricsSnapshot
impl Unpin for ProtocolMetricsSnapshot
impl UnsafeUnpin for ProtocolMetricsSnapshot
impl UnwindSafe for ProtocolMetricsSnapshot
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