#[non_exhaustive]pub enum RealtimeError {
Show 24 variants
MissingAuthToken,
Endpoint(Error),
Transport,
Handshake(&'static str),
Protocol(&'static str),
Decode(Error),
Encode(Error),
AlreadyConnected,
ConnectionCancelled,
ConnectionTimedOut,
NotConnected,
WrongHub,
SendQueueFull,
SendClosed,
EventQueueFull,
TransportGapPending,
EventReceiverClosed,
PendingInvocationCapacity,
IdentifierCapacity,
OutboundMessageTooLarge {
max_bytes: usize,
},
InvocationRejected {
target: String,
},
InvocationTimedOut {
target: String,
},
InvocationSessionEnded {
target: String,
},
Close,
}Expand description
Errors returned by the real-time transport.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingAuthToken
Authentication has not produced a bearer token.
Endpoint(Error)
Endpoint configuration could not form the hub URL.
Transport
The WebSocket transport failed. Details are intentionally omitted because the connection URL contains a bearer token.
Handshake(&'static str)
The SignalR handshake failed.
Protocol(&'static str)
A SignalR or event payload was malformed.
Decode(Error)
JSON decoding failed.
Encode(Error)
JSON encoding failed before an invocation reached the writer queue.
AlreadyConnected
The client is already connected.
ConnectionCancelled
Connection setup was cancelled by a concurrent disconnect or shutdown.
ConnectionTimedOut
The WebSocket upgrade did not complete within its bounded deadline.
NotConnected
The client is not connected.
WrongHub
The typed subscription does not belong to this client’s hub.
SendQueueFull
The bounded writer queue is full.
SendClosed
The writer task or channel closed.
EventQueueFull
The bounded event queue is full and a transport gap was latched.
TransportGapPending
Reconnection is fenced until the caller acknowledges a transport gap.
EventReceiverClosed
The single event receiver was dropped.
PendingInvocationCapacity
The pending invocation bound was reached.
IdentifierCapacity
A monotonic transport identifier reached its numeric bound.
OutboundMessageTooLarge
An invocation exceeded the bounded outbound message size.
InvocationRejected
A SignalR invocation was rejected by the provider.
InvocationTimedOut
A SignalR invocation timed out.
InvocationSessionEnded
The session ended before an invocation completed.
Close
Graceful close did not complete.
Trait Implementations§
Source§impl Debug for RealtimeError
impl Debug for RealtimeError
Source§impl Display for RealtimeError
impl Display for RealtimeError
Source§impl Error for RealtimeError
impl Error for RealtimeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()