pub struct ClientStats {
pub messages_sent: u64,
pub messages_received: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
pub connection_attempts: u32,
pub successful_connections: u32,
pub reconnections: u32,
pub last_ping_time: u64,
pub last_pong_time: u64,
}Expand description
WebSocket client statistics
Fields§
§messages_sent: u64Messages sent
messages_received: u64Messages received
bytes_sent: u64Bytes sent
bytes_received: u64Bytes received
connection_attempts: u32Connection attempts
successful_connections: u32Successful connections
reconnections: u32Reconnection count
last_ping_time: u64Last ping timestamp (nanoseconds)
last_pong_time: u64Last pong timestamp (nanoseconds)
Trait Implementations§
Source§impl Clone for ClientStats
impl Clone for ClientStats
Source§fn clone(&self) -> ClientStats
fn clone(&self) -> ClientStats
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 ClientStats
impl Debug for ClientStats
Source§impl Default for ClientStats
impl Default for ClientStats
Source§fn default() -> ClientStats
fn default() -> ClientStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientStats
impl RefUnwindSafe for ClientStats
impl Send for ClientStats
impl Sync for ClientStats
impl Unpin for ClientStats
impl UnwindSafe for ClientStats
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