pub struct SessionStats {
pub active_torrents: usize,
pub total_downloaded: u64,
pub total_uploaded: u64,
pub dht_nodes: usize,
pub external_address: Option<SocketAddr>,
pub incoming_peer_connections: u64,
}Expand description
Aggregate statistics for the whole session.
Fields§
§active_torrents: usizeNumber of non-paused torrents in the session.
total_downloaded: u64Total bytes downloaded across all torrents since session start.
total_uploaded: u64Total bytes uploaded across all torrents since session start.
dht_nodes: usizeNumber of nodes in the DHT routing table.
external_address: Option<SocketAddr>External address as the session currently knows it (M251/ER3).
IP comes from NAT traversal (PCP/NAT-PMP/UPnP), DHT BEP 42 consensus,
or manual Settings.external_ip; the port is the NAT-mapped TCP port
when a mapping succeeded, else the configured listen port. None
until an external IP is discovered, or when no meaningful port is
known (ephemeral listen port + no mapping). Tick-sampled like every
stats field — eventually consistent to one tick.
incoming_peer_connections: u64Monotonic count of validated inbound peer connections routed to a torrent since session start (TCP + SSL listener paths) (M251/ER6).
Nonzero ⇒ the listen port is reachable from the outside. Zero overhead until an inbound peer arrives; never reset while the session lives.
Trait Implementations§
Source§impl Clone for SessionStats
impl Clone for SessionStats
Source§fn clone(&self) -> SessionStats
fn clone(&self) -> SessionStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more