Enum ockam_transport_websocket::WebSocketError [−][src]
pub enum WebSocketError {}Show 13 variants
None, BadMessage, SendBadMessage, RecvBadMessage, BindFailed, ConnectionDrop, AlreadyConnected, PeerNotFound, PeerBusy, UnknownRoute, InvalidAddress, GenericIo, WebSocket,
Expand description
A WebSocket connection worker specific error type
Variants
None
Malformed message
Failed to send a malformed message
Failed to receive a malformed message
Failed to bind to the desired socket
Connection was dropped unexpectedly
Connection was already established
Connection peer was not found
Peer requected the incoming connection
Failed to route to an unknown recipient
Failed to parse the socket address
A generic I/O failure
A generic websocket failure
Implementations
Integer code associated with the error domain.
Error domain
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for WebSocketError
impl Send for WebSocketError
impl Sync for WebSocketError
impl Unpin for WebSocketError
impl UnwindSafe for WebSocketError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self