blob: cdbe8318cf767c938df1acd8f9ee3bde3e8422e3 (
plain)
1
2
3
4
5
6
7
8
9
|
/// Contains bytes sent and received through a tunnel
#[derive(Default, Debug, PartialEq, Eq, Clone, Copy)]
pub struct Stats {
pub tx_bytes: u64,
pub rx_bytes: u64,
}
/// A map from peer pubkeys to peer stats.
pub type StatsMap = std::collections::HashMap<[u8; 32], Stats>;
|