pub enum TransportErrorCode {
Show 26 variants
ConnectionFailed = -1_000,
ConnectionClosed = -1_001,
ConnectionTimeout = -1_002,
MessageTooLarge = -1_100,
InvalidMessage = -1_101,
MessageSendFailed = -1_102,
MessageReceiveFailed = -1_103,
ProtocolError = -1_200,
HandshakeFailed = -1_201,
SendError = -1_300,
OpenError = -1_301,
CloseError = -1_302,
ReceiveError = -1_303,
AuthenticationFailed = -1_202,
SessionExpired = -1_310,
SessionInvalid = -1_311,
SessionNotFound = -1_312,
WebSocketUpgradeFailed = -1_400,
WebSocketProtocolError = -1_401,
WebSocketFrameError = -1_402,
SseConnectionFailed = -1_500,
SseStreamError = -1_501,
SseParseError = -1_502,
InternalError = -1_900,
Timeout = -1_901,
InvalidState = -1_902,
}Expand description
Transport-specific error codes
Variants§
ConnectionFailed = -1_000
Connection to transport failed
ConnectionClosed = -1_001
Connection was closed
ConnectionTimeout = -1_002
Connection timed out
MessageTooLarge = -1_100
Message size exceeds limit
InvalidMessage = -1_101
Message format is invalid
MessageSendFailed = -1_102
Failed to send message
MessageReceiveFailed = -1_103
Failed to receive message
ProtocolError = -1_200
Protocol error occurred
HandshakeFailed = -1_201
Transport handshake failed
SendError = -1_300
Error sending message
OpenError = -1_301
Error opening transport
CloseError = -1_302
Error closing transport
ReceiveError = -1_303
Error receiving message
AuthenticationFailed = -1_202
Authentication failed
SessionExpired = -1_310
Session has expired
SessionInvalid = -1_311
Session is invalid
SessionNotFound = -1_312
Session not found
WebSocketUpgradeFailed = -1_400
WebSocket upgrade failed
WebSocketProtocolError = -1_401
WebSocket protocol error
WebSocketFrameError = -1_402
WebSocket frame error
SseConnectionFailed = -1_500
SSE connection failed to establish
SseStreamError = -1_501
Error occurred while streaming SSE events
SseParseError = -1_502
Failed to parse SSE event data
InternalError = -1_900
Internal transport error
Timeout = -1_901
Transport operation timed out
InvalidState = -1_902
Transport is in an invalid state
Trait Implementations§
Source§impl Clone for TransportErrorCode
impl Clone for TransportErrorCode
Source§fn clone(&self) -> TransportErrorCode
fn clone(&self) -> TransportErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportErrorCode
impl Debug for TransportErrorCode
Source§impl Display for TransportErrorCode
impl Display for TransportErrorCode
Source§impl PartialEq for TransportErrorCode
impl PartialEq for TransportErrorCode
impl Copy for TransportErrorCode
impl Eq for TransportErrorCode
impl StructuralPartialEq for TransportErrorCode
Auto Trait Implementations§
impl Freeze for TransportErrorCode
impl RefUnwindSafe for TransportErrorCode
impl Send for TransportErrorCode
impl Sync for TransportErrorCode
impl Unpin for TransportErrorCode
impl UnwindSafe for TransportErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.