#[non_exhaustive]pub struct ConnectionStats {
pub url: Arc<str>,
pub age: Duration,
pub redials: u64,
pub transport: Option<TransportStats>,
pub remote: Option<RemoteStats>,
}Expand description
One live connection of a dialling handle, labelled by the address the application dialled (0036 §4.1).
The record is per dialled address: url and redials belong to the
handle, age and transport to the connection. A connection the pool
shares between two handles that dialled the same URL on the same terms
appears under both, with the same transport counters (0036 §4.6).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: Arc<str>The URL exactly as the application gave it to connect.
age: DurationHow long the current connection has been up. A redial starts it again.
redials: u64Successful transparent redials of this address
(decisions/0031).
The first connect is not one.
transport: Option<TransportStats>The transport’s numbers; None on a local transport, which has no
path to measure.
remote: Option<RemoteStats>The peer’s view of the path, from its latest record; None until the
first one arrives, on a local transport, and when either side’s
Limits::path_report is off (0036 §4.5).