#[non_exhaustive]pub enum ErrorKind {
Show 40 variants
InvalidInput,
InvalidConfig,
Io,
Dns,
Tls,
Protocol,
HandshakeRejected,
ProviderFailed,
CallbackPanicked,
RuntimeUnavailable,
ResourceExhausted,
QueueFull,
QueueClosed,
ItemTooLarge,
PendingLimitReached,
SubscriptionLimitReached,
CallbackOverflow,
ControlOverflow,
ObservationLagged,
NotConnected,
NotRunning,
Unsupported,
SessionAlreadyExists,
ConnectionClosing,
Closed,
EngineDropped,
Cancelled,
TimedOut,
DeadlineExceeded,
DeliveryUnknown,
RetryExhausted,
InvalidPolicy,
BodyNotReplayable,
DuplicateRequestId,
RoutingDisabled,
RoutingModeMismatch,
ClientAlreadyExists,
ClientNotFound,
Internal,
HttpStatus,
}Expand description
Broad classification of failures exposed by the networking API.
This enum is non-exhaustive so callers must handle values added in future releases.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidInput
The caller supplied a value that cannot be used for the requested operation.
InvalidConfig
A configuration value violates a documented validation rule.
Io
An operating-system or transport I/O operation failed.
Dns
Resolving the remote host name failed.
Tls
TLS negotiation or certificate validation failed.
Protocol
The peer or an application callback violated the expected protocol.
HandshakeRejected
The peer rejected the WebSocket upgrade handshake.
ProviderFailed
A user-supplied provider returned an error.
CallbackPanicked
A user callback or callback future unwound with a panic.
The runtime could not start or accept required work.
ResourceExhausted
A bounded resource or concurrency budget could not admit more work.
QueueFull
A bounded queue reached its configured item or byte limit.
QueueClosed
The receiving side of a work queue has been closed.
ItemTooLarge
A message or frame exceeds the configured size limit.
PendingLimitReached
The maximum number of in-flight requests has been reached.
SubscriptionLimitReached
The maximum number of subscriptions has been reached.
CallbackOverflow
Callback delivery exceeded its bounded backlog.
ControlOverflow
Control-plane work exceeded its bounded backlog.
ObservationLagged
A subscription receiver fell behind and skipped observations.
NotConnected
The requested operation requires an established connection.
NotRunning
The operation requires an actively running network monitor view.
Unsupported
The operation is not implemented on this platform.
SessionAlreadyExists
A session with the requested identity is already active.
ConnectionClosing
The connection is already performing its closing sequence.
Closed
The relevant sender or receiver endpoint has been closed.
EngineDropped
The owning networking engine was dropped before completion.
Cancelled
The operation was cancelled by its caller or cancellation group.
TimedOut
The operation exceeded its configured deadline.
DeadlineExceeded
The operation exceeded its total retry deadline.
DeliveryUnknown
The message may have been written partially or its final delivery state is unknown.
RetryExhausted
All configured connection or request retry attempts were consumed.
InvalidPolicy
A retry policy or deadline configuration cannot be used.
BodyNotReplayable
The request body cannot be materialized again for another attempt.
DuplicateRequestId
A request identifier is already registered in the session.
RoutingDisabled
Response routing is disabled for the session.
RoutingModeMismatch
The operation requires a different response-routing mode.
ClientAlreadyExists
A client with the requested name is already registered.
ClientNotFound
No client with the requested name is registered.
Internal
An invariant or internal subsystem operation failed.
HttpStatus
An HTTP status represents the failed operation.