pub enum WebSocketError {
Configuration {
reason: String,
},
Entitlement {
cluster: WebSocketCluster,
},
StreamEntitlement {
stream: String,
},
Timeout {
operation: &'static str,
endpoint: String,
},
Transport {
operation: &'static str,
endpoint: String,
reason: String,
},
Server {
event: String,
status: Option<u16>,
endpoint: String,
body: String,
},
Protocol {
endpoint: String,
reason: String,
body: String,
},
Closed {
endpoint: String,
},
}Expand description
A specific connection, configuration, server, or protocol failure.
Variants§
Configuration
Invalid local configuration or subscription symbols.
Entitlement
The account has no configured grant for this cluster.
Fields
§
cluster: WebSocketClusterThe requested cluster.
StreamEntitlement
The requested current market stream has no configured grant.
Timeout
A bounded operation exceeded its configured timeout.
Fields
Transport
An HTTP upgrade or active transport operation failed.
Fields
Server
A server control explicitly rejected a request or authentication.
Fields
Protocol
The remote payload failed strict runtime validation.
Fields
Closed
A command was attempted after a completed remote close.
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
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for WebSocketError
impl RefUnwindSafe for WebSocketError
impl Send for WebSocketError
impl Sync for WebSocketError
impl Unpin for WebSocketError
impl UnsafeUnpin 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