pub struct CollectionStats {
pub trades_received: u64,
pub orderbooks_received: u64,
pub errors_count: u64,
pub last_trade_time: Option<u64>,
pub last_orderbook_time: Option<u64>,
pub bytes_received: u64,
pub messages_per_second: f64,
pub latency_nanos: u64,
}Expand description
Statistics for data collection.
Fields§
§trades_received: u64Number of trades received
orderbooks_received: u64Number of order books received
errors_count: u64Number of errors encountered
last_trade_time: Option<u64>Timestamp of last trade in nanoseconds
last_orderbook_time: Option<u64>Timestamp of last order book in nanoseconds
bytes_received: u64Total bytes received
messages_per_second: f64Messages per second rate
latency_nanos: u64Current latency in nanoseconds
Trait Implementations§
Source§impl Clone for CollectionStats
impl Clone for CollectionStats
Source§fn clone(&self) -> CollectionStats
fn clone(&self) -> CollectionStats
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 CollectionStats
impl Debug for CollectionStats
Source§impl Default for CollectionStats
impl Default for CollectionStats
Source§fn default() -> CollectionStats
fn default() -> CollectionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CollectionStats
impl RefUnwindSafe for CollectionStats
impl Send for CollectionStats
impl Sync for CollectionStats
impl Unpin for CollectionStats
impl UnwindSafe for CollectionStats
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