Enum ntex::http::client::error::WsClientError [−][src]
pub enum WsClientError { InvalidResponseStatus(StatusCode), InvalidUpgradeHeader, InvalidConnectionHeader(HeaderValue), MissingConnectionHeader, MissingWebSocketAcceptHeader, InvalidChallengeResponse(String, HeaderValue), Protocol(ProtocolError), SendRequest(SendRequestError), }
Expand description
Websocket client error
Variants
InvalidResponseStatus(StatusCode)
Invalid response status
Invalid upgrade header
InvalidConnectionHeader(HeaderValue)
Invalid connection header
Missing CONNECTION header
Missing SEC-WEBSOCKET-ACCEPT header
InvalidChallengeResponse(String, HeaderValue)
Invalid challenge response
Protocol(ProtocolError)
Protocol error
SendRequest(SendRequestError)
Send request error
Trait Implementations
impl Debug for WsClientError
[src]
impl Debug for WsClientError
[src]impl Display for WsClientError
[src]
impl Display for WsClientError
[src]impl Error for WsClientError
[src]
impl Error for WsClientError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<(String, HeaderValue)> for WsClientError
[src]
impl From<(String, HeaderValue)> for WsClientError
[src]fn from(original: (String, HeaderValue)) -> WsClientError
[src]
fn from(original: (String, HeaderValue)) -> WsClientError
[src]Performs the conversion.
impl From<HeaderValue> for WsClientError
[src]
impl From<HeaderValue> for WsClientError
[src]fn from(original: HeaderValue) -> WsClientError
[src]
fn from(original: HeaderValue) -> WsClientError
[src]Performs the conversion.
impl From<InvalidUrl> for WsClientError
[src]
impl From<InvalidUrl> for WsClientError
[src]fn from(err: InvalidUrl) -> Self
[src]
fn from(err: InvalidUrl) -> Self
[src]Performs the conversion.
impl From<ProtocolError> for WsClientError
[src]
impl From<ProtocolError> for WsClientError
[src]fn from(original: ProtocolError) -> WsClientError
[src]
fn from(original: ProtocolError) -> WsClientError
[src]Performs the conversion.
impl From<SendRequestError> for WsClientError
[src]
impl From<SendRequestError> for WsClientError
[src]fn from(original: SendRequestError) -> WsClientError
[src]
fn from(original: SendRequestError) -> WsClientError
[src]Performs the conversion.
impl From<StatusCode> for WsClientError
[src]
impl From<StatusCode> for WsClientError
[src]fn from(original: StatusCode) -> WsClientError
[src]
fn from(original: StatusCode) -> WsClientError
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self