Enum awc::error::WsClientError
source · pub enum WsClientError {
InvalidResponseStatus(StatusCode),
InvalidUpgradeHeader,
InvalidConnectionHeader(HeaderValue),
MissingConnectionHeader,
MissingWebSocketAcceptHeader,
InvalidChallengeResponse([u8; 28], HeaderValue),
Protocol(WsProtocolError),
SendRequest(SendRequestError),
}
Expand description
Websocket client error
Variants§
InvalidResponseStatus(StatusCode)
Invalid response status
InvalidUpgradeHeader
Invalid upgrade header
InvalidConnectionHeader(HeaderValue)
Invalid connection header
MissingConnectionHeader
Missing Connection header
MissingWebSocketAcceptHeader
Missing Sec-Websocket-Accept header
InvalidChallengeResponse([u8; 28], HeaderValue)
Invalid challenge response
Protocol(WsProtocolError)
Protocol error
SendRequest(SendRequestError)
Send request error
Trait Implementations§
source§impl Debug for WsClientError
impl Debug for WsClientError
source§impl Display for WsClientError
impl Display for WsClientError
source§impl Error for WsClientError
impl Error for WsClientError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<([u8; 28], HeaderValue)> for WsClientError
impl From<([u8; 28], HeaderValue)> for WsClientError
source§fn from(original: ([u8; 28], HeaderValue)) -> WsClientError
fn from(original: ([u8; 28], HeaderValue)) -> WsClientError
Converts to this type from the input type.
source§impl From<Error> for WsClientError
impl From<Error> for WsClientError
source§impl From<HeaderValue> for WsClientError
impl From<HeaderValue> for WsClientError
source§fn from(original: HeaderValue) -> WsClientError
fn from(original: HeaderValue) -> WsClientError
Converts to this type from the input type.
source§impl From<InvalidUrl> for WsClientError
impl From<InvalidUrl> for WsClientError
source§fn from(err: InvalidUrl) -> Self
fn from(err: InvalidUrl) -> Self
Converts to this type from the input type.
source§impl From<ProtocolError> for WsClientError
impl From<ProtocolError> for WsClientError
source§fn from(original: WsProtocolError) -> WsClientError
fn from(original: WsProtocolError) -> WsClientError
Converts to this type from the input type.
source§impl From<SendRequestError> for WsClientError
impl From<SendRequestError> for WsClientError
source§fn from(original: SendRequestError) -> WsClientError
fn from(original: SendRequestError) -> WsClientError
Converts to this type from the input type.
source§impl From<StatusCode> for WsClientError
impl From<StatusCode> for WsClientError
source§fn from(original: StatusCode) -> WsClientError
fn from(original: StatusCode) -> WsClientError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for WsClientError
impl !RefUnwindSafe for WsClientError
impl !Send for WsClientError
impl !Sync for WsClientError
impl Unpin for WsClientError
impl !UnwindSafe for WsClientError
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