pub struct ConnectionStats {
pub connection_id: usize,
pub is_connected: bool,
pub symbol_count: usize,
pub messages_received: u64,
pub messages_parsed: u64,
pub errors_count: u64,
pub last_message_time: Option<Instant>,
pub average_latency: Duration,
pub connection_uptime: Duration,
}Expand description
Connection statistics for monitoring
Fields§
§connection_id: usize§is_connected: bool§symbol_count: usize§messages_received: u64§messages_parsed: u64§errors_count: u64§last_message_time: Option<Instant>§average_latency: Duration§connection_uptime: DurationTrait Implementations§
Source§impl Clone for ConnectionStats
impl Clone for ConnectionStats
Source§fn clone(&self) -> ConnectionStats
fn clone(&self) -> ConnectionStats
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 ConnectionStats
impl Debug for ConnectionStats
Source§impl Default for ConnectionStats
impl Default for ConnectionStats
Source§fn default() -> ConnectionStats
fn default() -> ConnectionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectionStats
impl RefUnwindSafe for ConnectionStats
impl Send for ConnectionStats
impl Sync for ConnectionStats
impl Unpin for ConnectionStats
impl UnwindSafe for ConnectionStats
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