pub struct WsStats {
pub messages_received: u64,
pub messages_sent: u64,
pub bytes_received: u64,
pub bytes_sent: u64,
pub last_message_time: i64,
pub last_ping_time: i64,
pub last_pong_time: i64,
pub connected_at: i64,
pub reconnect_attempts: u32,
}Expand description
WebSocket connection statistics.
Fields§
§messages_received: u64Total messages received
messages_sent: u64Total messages sent
bytes_received: u64Total bytes received
bytes_sent: u64Total bytes sent
last_message_time: i64Last message timestamp in milliseconds
last_ping_time: i64Last ping timestamp in milliseconds
last_pong_time: i64Last pong timestamp in milliseconds
connected_at: i64Connection established timestamp in milliseconds
reconnect_attempts: u32Number of reconnection attempts
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsStats
impl RefUnwindSafe for WsStats
impl Send for WsStats
impl Sync for WsStats
impl Unpin for WsStats
impl UnwindSafe for WsStats
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