#[non_exhaustive]pub struct ErrorContext {
pub stage: Option<ErrorStage>,
pub client_id: Option<ClientId>,
pub session_id: Option<SessionId>,
pub connection_id: Option<ConnectionId>,
pub attempt_id: Option<AttemptId>,
pub request_id: Option<RequestId>,
pub http_status: Option<StatusCode>,
pub diagnostic: Option<HandshakeDiagnostic>,
pub peer_close: Option<PeerClose>,
pub io_end: Option<IoEndKind>,
}Expand description
Optional identifiers and protocol details retained alongside a NetError.
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.stage: Option<ErrorStage>Processing stage at which the error was classified.
client_id: Option<ClientId>WebSocket client identifier associated with the failure, when available.
session_id: Option<SessionId>Logical WebSocket session identifier associated with the failure, when available.
connection_id: Option<ConnectionId>Physical connection identifier associated with the failure, when available.
attempt_id: Option<AttemptId>Handshake attempt identifier associated with the failure, when available.
request_id: Option<RequestId>Request identifier associated with the failure, when available.
http_status: Option<StatusCode>HTTP status received from the peer, including protocol or body-read failures.
diagnostic: Option<HandshakeDiagnostic>Handshake diagnostic captured for the failure, when available.
peer_close: Option<PeerClose>Peer close details associated with the failure, when available.
io_end: Option<IoEndKind>I/O termination classification associated with the failure, when available.