pub struct MetricsSnapshot {Show 18 fields
pub packets_sent: u64,
pub packets_recv: u64,
pub bytes_sent: u64,
pub bytes_recv: u64,
pub per_leg_packets: [(LegType, u64, u64); 3],
pub per_leg_bytes: [(LegType, u64, u64); 3],
pub avg_encrypt_ns: u64,
pub avg_decrypt_ns: u64,
pub encrypt_count: u64,
pub decrypt_count: u64,
pub rtt_us_path_0: u64,
pub active_sessions: i64,
pub active_streams: i64,
pub handshakes_success: u64,
pub handshakes_failure: u64,
pub handshake_latency_ns_sum: u64,
pub handshake_latency_count: u64,
pub uptime_secs: u64,
}Expand description
Immutable cold-path snapshot of the hot-path atomics.
Fields§
§packets_sent: u64§packets_recv: u64§bytes_sent: u64§bytes_recv: u64§per_leg_packets: [(LegType, u64, u64); 3]Per-leg packet counts: (LegType, packets_sent, packets_recv).
per_leg_bytes: [(LegType, u64, u64); 3]Per-leg byte counts: (LegType, bytes_sent, bytes_recv).
avg_encrypt_ns: u64§avg_decrypt_ns: u64§encrypt_count: u64§decrypt_count: u64§rtt_us_path_0: u64§active_sessions: i64§active_streams: i64§handshakes_success: u64§handshakes_failure: u64§handshake_latency_ns_sum: u64§handshake_latency_count: u64§uptime_secs: 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 moreSource§impl Debug for MetricsSnapshot
impl Debug for MetricsSnapshot
Source§impl Default for MetricsSnapshot
impl Default 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