pub struct ConnectionMetrics {
pub total_connections: u64,
pub successful_reconnections: u64,
pub failed_reconnections: u64,
pub average_reconnection_time: Duration,
pub heartbeat_failures: u64,
pub subscription_recoveries: u64,
pub last_updated: Option<Instant>,
}
Expand description
Connection metrics for monitoring and debugging
Fields§
§total_connections: u64
Total number of connection attempts made
successful_reconnections: u64
Number of successful reconnection attempts
failed_reconnections: u64
Number of failed reconnection attempts
average_reconnection_time: Duration
Average time taken for successful reconnections
heartbeat_failures: u64
Number of heartbeat failures detected
subscription_recoveries: u64
Number of subscription recovery operations performed
last_updated: Option<Instant>
Timestamp of when these metrics were last updated
Trait Implementations§
Source§impl Clone for ConnectionMetrics
impl Clone for ConnectionMetrics
Source§fn clone(&self) -> ConnectionMetrics
fn clone(&self) -> ConnectionMetrics
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 ConnectionMetrics
impl Debug for ConnectionMetrics
Source§impl Default for ConnectionMetrics
impl Default for ConnectionMetrics
Source§fn default() -> ConnectionMetrics
fn default() -> ConnectionMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectionMetrics
impl RefUnwindSafe for ConnectionMetrics
impl Send for ConnectionMetrics
impl Sync for ConnectionMetrics
impl Unpin for ConnectionMetrics
impl UnwindSafe for ConnectionMetrics
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