pub struct ExchangeStats {
pub messages_received: u64,
pub bytes_received: u64,
pub reconnections: u64,
pub last_message_timestamp: u64,
pub connection_duration_ms: u64,
pub messages_per_second: f64,
}Expand description
Non-atomic exchange statistics for snapshots
Fields§
§messages_received: u64Total number of messages received from this exchange
bytes_received: u64Total bytes received from this exchange
reconnections: u64Number of reconnections to this exchange
last_message_timestamp: u64Timestamp of the last message received (nanoseconds since start)
connection_duration_ms: u64Total connection duration in milliseconds
messages_per_second: f64Current rate of messages received per second from this exchange
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 moreSource§impl Debug for ExchangeStats
impl Debug for ExchangeStats
Source§impl Default for ExchangeStats
impl Default for ExchangeStats
Source§fn default() -> ExchangeStats
fn default() -> ExchangeStats
Returns the “default value” for a type. Read more
Auto 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