pub struct ExchangeStats {
pub connected: bool,
pub messages_received: u64,
pub bytes_received: u64,
pub messages_per_second: f64,
pub reconnection_attempts: usize,
pub last_message_timestamp: u64,
pub connection_start_time: u64,
}Expand description
Statistics for individual exchanges
Provides detailed performance metrics and connection information for a specific exchange, including message throughput, connection status, and error tracking.
Fields§
§connected: boolWhether the exchange is currently connected
messages_received: u64Total messages received from this exchange
bytes_received: u64Total bytes received from this exchange
messages_per_second: f64Average messages per second for this exchange
reconnection_attempts: usizeNumber of reconnection attempts made
last_message_timestamp: u64Timestamp of the last message received (nanoseconds)
connection_start_time: u64Timestamp when the connection was established (nanoseconds)
Trait Implementations§
Source§impl Clone for ExchangeStats
impl Clone for ExchangeStats
Source§fn clone(&self) -> ExchangeStats
fn clone(&self) -> ExchangeStats
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 ExchangeStats
impl RefUnwindSafe for ExchangeStats
impl Send for ExchangeStats
impl Sync for ExchangeStats
impl Unpin for ExchangeStats
impl UnwindSafe for ExchangeStats
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