pub enum WebSocketError {
Show 16 variants
ConnectionError(String),
AuthenticationError(String),
SubscriptionError(String),
MessageProcessingError(String),
ProtocolError(String),
ConnectionClosed(String),
Timeout(u64),
RateLimitExceeded(String),
ReconnectionFailed {
attempts: u32,
},
NotConnected,
ChannelError(String),
IoError(Error),
InvalidUrl(ParseError),
YawcError(WebSocketError),
JsonError(Error),
Other(String),
}Expand description
WebSocket errors
Variants§
ConnectionError(String)
Connection errors
AuthenticationError(String)
Authentication errors
SubscriptionError(String)
Subscription errors
MessageProcessingError(String)
Message processing errors
ProtocolError(String)
Protocol errors
ConnectionClosed(String)
Connection closed
Timeout(u64)
Timeout errors
RateLimitExceeded(String)
Rate limit errors
ReconnectionFailed
Reconnection errors
NotConnected
Not connected
ChannelError(String)
Channel errors
IoError(Error)
I/O errors
InvalidUrl(ParseError)
URL parsing errors
YawcError(WebSocketError)
Yawc errors
JsonError(Error)
JSON errors
Other(String)
Other errors
Trait Implementations§
Source§impl Debug for WebSocketError
impl Debug for WebSocketError
Source§impl Display for WebSocketError
impl Display for WebSocketError
Source§impl Error for WebSocketError
impl Error for WebSocketError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<&str> for WebSocketError
impl From<&str> for WebSocketError
Source§impl From<Error> for WebSocketError
impl From<Error> for WebSocketError
Source§impl From<Error> for WebSocketError
impl From<Error> for WebSocketError
Source§impl From<ParseError> for WebSocketError
impl From<ParseError> for WebSocketError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<String> for WebSocketError
impl From<String> for WebSocketError
Auto Trait Implementations§
impl Freeze for WebSocketError
impl !RefUnwindSafe for WebSocketError
impl Send for WebSocketError
impl Sync for WebSocketError
impl Unpin for WebSocketError
impl !UnwindSafe for WebSocketError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.