Trait TransportStats_

Source
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§

Source

fn stats(&self) -> TransportStats

Get current transport statistics

Source

fn reset_stats(&mut self)

Reset transport statistics

Implementors§