Enum ockam_transport_websocket::WebSocketError [−][src]
#[non_exhaustive]
pub enum WebSocketError {
Transport(TransportError),
Http,
Tls,
}
Expand description
A WebSocket connection worker specific error type
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Transport(TransportError)
A wrapped transport error
Tuple Fields of Transport
HTTP error
TLS error
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
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more