Enum http_ws::HandshakeError
source · pub enum HandshakeError {
GetMethodRequired,
ConnectMethodRequired,
NoWebsocketUpgrade,
NoConnectionUpgrade,
NoVersionHeader,
UnsupportedVersion,
BadWebsocketKey,
}Expand description
WebSocket handshake errors
Variants§
GetMethodRequired
ConnectMethodRequired
NoWebsocketUpgrade
NoConnectionUpgrade
NoVersionHeader
UnsupportedVersion
BadWebsocketKey
Trait Implementations§
source§impl Debug for HandshakeError
impl Debug for HandshakeError
source§impl Display for HandshakeError
impl Display for HandshakeError
source§impl Error for HandshakeError
impl Error for HandshakeError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<HandshakeError> for Builder
impl From<HandshakeError> for Builder
source§fn from(e: HandshakeError) -> Self
fn from(e: HandshakeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for HandshakeError
impl PartialEq for HandshakeError
source§fn eq(&self, other: &HandshakeError) -> bool
fn eq(&self, other: &HandshakeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for HandshakeError
impl StructuralEq for HandshakeError
impl StructuralPartialEq for HandshakeError
Auto Trait Implementations§
impl RefUnwindSafe for HandshakeError
impl Send for HandshakeError
impl Sync for HandshakeError
impl Unpin for HandshakeError
impl UnwindSafe for HandshakeError
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