Enum awc::error::WsClientError [−][src]
pub enum WsClientError {
InvalidResponseStatus(StatusCode),
InvalidUpgradeHeader,
InvalidConnectionHeader(HeaderValue),
MissingConnectionHeader,
MissingWebSocketAcceptHeader,
InvalidChallengeResponse(String, HeaderValue),
Protocol(WsProtocolError),
SendRequest(SendRequestError),
}
Expand description
Websocket client error
Variants
InvalidResponseStatus(StatusCode)
Tuple Fields
0: StatusCode
Invalid response status
InvalidUpgradeHeader
Invalid upgrade header
InvalidConnectionHeader(HeaderValue)
Tuple Fields
0: HeaderValue
Invalid connection header
MissingConnectionHeader
Missing CONNECTION header
MissingWebSocketAcceptHeader
Missing SEC-WEBSOCKET-ACCEPT header
InvalidChallengeResponse(String, HeaderValue)
Invalid challenge response
Protocol(WsProtocolError)
Tuple Fields
Protocol error
SendRequest(SendRequestError)
Tuple Fields
Send request error
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for WsClientError
impl !Send for WsClientError
impl !Sync for WsClientError
impl Unpin for WsClientError
impl !UnwindSafe for WsClientError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more