pub trait TransportStats_: Send + Sync {
// Required methods
fn stats(&self) -> TransportStats;
fn reset_stats(&mut self);
}
Expand description
Trait for transports that support statistics
Required Methods§
Sourcefn stats(&self) -> TransportStats
fn stats(&self) -> TransportStats
Get current transport statistics
Sourcefn reset_stats(&mut self)
fn reset_stats(&mut self)
Reset transport statistics