Enum workflow_websocket::server::Error
source · [−]pub enum Error {
ConnectionTimeout,
MalformedHandshake,
NegotiationFailure,
NegotiationFailureWithReason(String),
ResponseChannelError(SendError<Message>),
WebSocketError(Error),
ConnectionClosed,
}
Variants
ConnectionTimeout
Indicates that no messages have been received within the specified timeout period
MalformedHandshake
Indicates that the data received is not a valid websocket message
NegotiationFailure
Indicates handler negotiation failure This error code is reserved for structs implementing WebSocket handler.
NegotiationFailureWithReason(String)
Indicates handler negotiation failure with a specific reason This error code is reserved for structs implementing WebSocket handler.
ResponseChannelError(SendError<Message>)
Error sending response via the tokio mspc response channel
WebSocketError(Error)
WebSocket error produced by the underlying Tungstenite WebSocket crate
ConnectionClosed
Connection terminated absormally
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more