Enum actix_web::ws::ClientError
source · pub enum ClientError {
Show 14 variants
InvalidUrl,
InvalidResponseStatus(StatusCode),
InvalidUpgradeHeader,
InvalidConnectionHeader(HeaderValue),
MissingConnectionHeader,
MissingWebSocketAcceptHeader,
InvalidChallengeResponse(String, HeaderValue),
Http(Error),
Url(UrlParseError),
ResponseParseError(HttpResponseParserError),
SendRequest(SendRequestError),
Protocol(ProtocolError),
Io(Error),
Disconnected,
}
Expand description
Websocket client error
Variants
InvalidUrl
Invalid url
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(String, HeaderValue)
Invalid challenge response
Http(Error)
Http parsing error
Url(UrlParseError)
Url parsing error
ResponseParseError(HttpResponseParserError)
Response parsing error
SendRequest(SendRequestError)
Send request error
Protocol(ProtocolError)
Protocol error
Io(Error)
IO Error
Disconnected
“Disconnected”
Trait Implementations
sourceimpl Debug for ClientError
impl Debug for ClientError
sourceimpl Display for ClientError
impl Display for ClientError
sourceimpl Fail for ClientError
impl Fail for ClientError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<Error> for ClientError
impl From<Error> for ClientError
sourcefn from(err: Error) -> ClientError
fn from(err: Error) -> ClientError
Converts to this type from the input type.
sourceimpl From<Error> for ClientError
impl From<Error> for ClientError
sourcefn from(err: Error) -> ClientError
fn from(err: Error) -> ClientError
Converts to this type from the input type.
sourceimpl From<ParseError> for ClientError
impl From<ParseError> for ClientError
sourcefn from(err: UrlParseError) -> ClientError
fn from(err: UrlParseError) -> ClientError
Converts to this type from the input type.
sourceimpl From<ProtocolError> for ClientError
impl From<ProtocolError> for ClientError
sourcefn from(err: ProtocolError) -> ClientError
fn from(err: ProtocolError) -> ClientError
Converts to this type from the input type.
sourceimpl From<SendRequestError> for ClientError
impl From<SendRequestError> for ClientError
sourcefn from(err: SendRequestError) -> ClientError
fn from(err: SendRequestError) -> ClientError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
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