pub enum WebsocketUpgradeError {
InvalidStatus(StatusCode),
InvalidUpgradeType,
InvalidConnectionHeader,
MissingChallenge,
InvalidChallenge,
}Expand description
Websocket upgrade errors
Variants§
InvalidStatus(StatusCode)
Unexpected Status code
InvalidUpgradeType
Unexpected type of upgrade
InvalidConnectionHeader
Unexpected Connection header
MissingChallenge
Sec-Websocket-Accept header is missing
InvalidChallenge
Sec-Websocket-Accept has invalid challenge.
Trait Implementations§
Source§impl Debug for WebsocketUpgradeError
impl Debug for WebsocketUpgradeError
Source§impl Display for WebsocketUpgradeError
impl Display for WebsocketUpgradeError
Source§impl Error for WebsocketUpgradeError
impl Error for WebsocketUpgradeError
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()
Source§impl From<StatusCode> for WebsocketUpgradeError
impl From<StatusCode> for WebsocketUpgradeError
Source§fn from(code: StatusCode) -> Self
fn from(code: StatusCode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebsocketUpgradeError
impl RefUnwindSafe for WebsocketUpgradeError
impl Send for WebsocketUpgradeError
impl Sync for WebsocketUpgradeError
impl Unpin for WebsocketUpgradeError
impl UnsafeUnpin for WebsocketUpgradeError
impl UnwindSafe for WebsocketUpgradeError
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