Enum ntex::ws::error::WsClientError [−][src]
pub enum WsClientError {
InvalidResponse(ParseError),
InvalidResponseStatus(StatusCode),
InvalidUpgradeHeader,
InvalidConnectionHeader(HeaderValue),
MissingConnectionHeader,
MissingWebSocketAcceptHeader,
InvalidChallengeResponse(String, HeaderValue),
Protocol(ProtocolError),
Timeout,
Connect(ConnectError),
Disconnected(Option<Error>),
}
Expand description
Websocket client error
Variants
InvalidResponse(ParseError)
Tuple Fields
0: ParseError
Invalid response
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(ProtocolError)
Tuple Fields
Protocol error
Timeout
Response took too long
Connect(ConnectError)
Tuple Fields
0: ConnectError
Failed to connect to host
Disconnected(Option<Error>)
Connector has been disconnected
Trait Implementations
Performs the conversion.
Performs the conversion.
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
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