pub struct ConnectionHealth {
pub is_healthy: bool,
pub last_ping_sent: u64,
pub last_pong_received: u64,
pub reconnection_attempts: u8,
pub messages_sent: u64,
pub messages_received: u64,
}Expand description
Connection health metrics
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)
reconnection_attempts: u8Number of reconnection attempts made
messages_sent: u64Total number of messages sent
messages_received: u64Total number of 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 moreSource§impl Debug for ConnectionHealth
impl Debug for ConnectionHealth
Source§impl Default for ConnectionHealth
impl Default for ConnectionHealth
Source§fn default() -> ConnectionHealth
fn default() -> ConnectionHealth
Returns the “default value” for a type. Read more
Auto 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