pub enum UpgradeError {
NoVersion,
NoSecKey,
UnsupportedVersion,
}Expand description
Websocket upgrade errors
Variants§
NoVersion
No Sec-WebSocket-Version header
NoSecKey
No Sec-WebSocket-Key header
UnsupportedVersion
Unsupported Sec-WebSocket-Version
Trait Implementations§
Source§impl Clone for UpgradeError
impl Clone for UpgradeError
Source§fn clone(&self) -> UpgradeError
fn clone(&self) -> UpgradeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpgradeError
impl Debug for UpgradeError
Source§impl Display for UpgradeError
impl Display for UpgradeError
Source§impl Error for UpgradeError
impl Error for UpgradeError
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<E> From<UpgradeError> for Error<E>
impl<E> From<UpgradeError> for Error<E>
Source§fn from(e: UpgradeError) -> Self
fn from(e: UpgradeError) -> Self
Converts to this type from the input type.
Source§impl Hash for UpgradeError
impl Hash for UpgradeError
Source§impl PartialEq for UpgradeError
impl PartialEq for UpgradeError
impl Copy for UpgradeError
impl Eq for UpgradeError
impl StructuralPartialEq for UpgradeError
Auto Trait Implementations§
impl Freeze for UpgradeError
impl RefUnwindSafe for UpgradeError
impl Send for UpgradeError
impl Sync for UpgradeError
impl Unpin for UpgradeError
impl UnwindSafe for UpgradeError
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