#[non_exhaustive]pub struct ConnectionDiagnostics {
pub server: String,
pub negotiated: Option<NegotiatedSummary>,
pub credits: CreditInfo,
pub signing: SigningInfo,
pub encryption: EncryptionInfo,
pub compression: CompressionInfo,
pub rtt_estimate: Option<Duration>,
pub disconnected: bool,
pub dfs_trees: Vec<TreeId>,
pub session: Option<SessionDiagnostics>,
pub metrics: MetricsSnapshot,
pub outstanding: Vec<OutstandingRequest>,
}Expand description
Per-connection snapshot, captured by
Connection::diagnostics and
included in Diagnostics::primary / Diagnostics::extra_connections.
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.server: StringServer hostname or IP this connection talks to.
negotiated: Option<NegotiatedSummary>Negotiated parameters, or None until negotiate() runs.
credits: CreditInfoCredit gauge + in-flight count + next-MessageId.
signing: SigningInfoSigning state.
encryption: EncryptionInfoEncryption state.
compression: CompressionInfoCompression state.
rtt_estimate: Option<Duration>RTT measured during negotiate, if it ran.
disconnected: booltrue after the receiver task has torn down (transport error,
decrypt failure, etc.).
dfs_trees: Vec<TreeId>Tree IDs that have DFS capability on this connection.
session: Option<SessionDiagnostics>Session on this connection, or None until session setup runs.
metrics: MetricsSnapshotPer-connection counters.
outstanding: Vec<OutstandingRequest>Requests sent and not yet answered, oldest first.
Empty on a healthy idle connection. A long-lived entry here is the
signature of a hung request; see OutstandingRequest.
Trait Implementations§
Source§impl Clone for ConnectionDiagnostics
impl Clone for ConnectionDiagnostics
Source§fn clone(&self) -> ConnectionDiagnostics
fn clone(&self) -> ConnectionDiagnostics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more