#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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 associated with a protocol or upgrade failure.
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.
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
Source§impl Debug for ErrorContext
impl Debug for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnsafeUnpin for ErrorContext
impl UnwindSafe for ErrorContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more