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
sourceimpl Debug for WsClientError
impl Debug for WsClientError
sourceimpl Display for WsClientError
impl Display for WsClientError
sourceimpl Error for WsClientError
impl Error for WsClientError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<([u8; 28], HeaderValue)> for WsClientError
impl From<([u8; 28], HeaderValue)> for WsClientError
sourcefn from(original: ([u8; 28], HeaderValue)) -> WsClientError
fn from(original: ([u8; 28], HeaderValue)) -> WsClientError
Converts to this type from the input type.
sourceimpl From<Error> for WsClientError
impl From<Error> for WsClientError
sourceimpl From<HeaderValue> for WsClientError
impl From<HeaderValue> for WsClientError
sourcefn from(original: HeaderValue) -> WsClientError
fn from(original: HeaderValue) -> WsClientError
Converts to this type from the input type.
sourceimpl From<InvalidUrl> for WsClientError
impl From<InvalidUrl> for WsClientError
sourcefn from(err: InvalidUrl) -> Self
fn from(err: InvalidUrl) -> Self
Converts to this type from the input type.
sourceimpl From<ProtocolError> for WsClientError
impl From<ProtocolError> for WsClientError
sourcefn from(original: WsProtocolError) -> WsClientError
fn from(original: WsProtocolError) -> WsClientError
Converts to this type from the input type.
sourceimpl From<SendRequestError> for WsClientError
impl From<SendRequestError> for WsClientError
sourcefn from(original: SendRequestError) -> WsClientError
fn from(original: SendRequestError) -> WsClientError
Converts to this type from the input type.
sourceimpl From<StatusCode> for WsClientError
impl From<StatusCode> for WsClientError
sourcefn from(original: StatusCode) -> WsClientError
fn from(original: StatusCode) -> WsClientError
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more