pub struct ConnectionHealth {
pub is_healthy: bool,
pub last_ping_sent: u64,
pub last_pong_received: u64,
pub pending_pings: u32,
pub reconnection_attempts: u32,
pub messages_sent: u64,
pub messages_received: u64,
}Expand description
Connection health tracking
Fields§
§is_healthy: boolWhether the connection is healthy
last_ping_sent: u64Timestamp of last ping sent (nanoseconds)
last_pong_received: u64Timestamp of last pong received (nanoseconds)
pending_pings: u32Number of pending ping requests
reconnection_attempts: u32Number of reconnection attempts made
messages_sent: u64Total messages sent
messages_received: u64Total messages received
Trait Implementations§
Source§impl Clone for ConnectionHealth
impl Clone for ConnectionHealth
Source§fn clone(&self) -> ConnectionHealth
fn clone(&self) -> ConnectionHealth
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectionHealth
impl RefUnwindSafe for ConnectionHealth
impl Send for ConnectionHealth
impl Sync for ConnectionHealth
impl Unpin for ConnectionHealth
impl UnwindSafe for ConnectionHealth
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