pub struct ConnectionMetricsSnapshot {
pub total_connections: u64,
pub active_connections: usize,
pub peak_connections: usize,
pub connection_error_rate: f64,
pub avg_connection_duration_ms: f64,
}Expand description
Connection metrics snapshot
Fields§
§total_connections: u64Total connections established
active_connections: usizeCurrently active connections
peak_connections: usizePeak concurrent connections
connection_error_rate: f64Connection error rate
avg_connection_duration_ms: f64Average connection duration
Trait Implementations§
Source§impl Clone for ConnectionMetricsSnapshot
impl Clone for ConnectionMetricsSnapshot
Source§fn clone(&self) -> ConnectionMetricsSnapshot
fn clone(&self) -> ConnectionMetricsSnapshot
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 ConnectionMetricsSnapshot
impl Debug for ConnectionMetricsSnapshot
Source§impl<'de> Deserialize<'de> for ConnectionMetricsSnapshot
impl<'de> Deserialize<'de> for ConnectionMetricsSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectionMetricsSnapshot
impl RefUnwindSafe for ConnectionMetricsSnapshot
impl Send for ConnectionMetricsSnapshot
impl Sync for ConnectionMetricsSnapshot
impl Unpin for ConnectionMetricsSnapshot
impl UnsafeUnpin for ConnectionMetricsSnapshot
impl UnwindSafe for ConnectionMetricsSnapshot
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