#[non_exhaustive]pub struct ConnectionNotUpgradable;
Expand description
Rejection type for WebSocketUpgrade
.
This rejection is returned if the connection cannot be upgraded for example if the request is HTTP/1.0.
See MDN for more details about connection upgrades.
Implementations§
Trait Implementations§
source§impl Debug for ConnectionNotUpgradable
impl Debug for ConnectionNotUpgradable
source§impl Default for ConnectionNotUpgradable
impl Default for ConnectionNotUpgradable
source§impl Display for ConnectionNotUpgradable
impl Display for ConnectionNotUpgradable
source§impl Error for ConnectionNotUpgradable
impl Error for ConnectionNotUpgradable
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<ConnectionNotUpgradable> for WebSocketUpgradeRejection
impl From<ConnectionNotUpgradable> for WebSocketUpgradeRejection
source§fn from(inner: ConnectionNotUpgradable) -> Self
fn from(inner: ConnectionNotUpgradable) -> Self
Converts to this type from the input type.
source§impl IntoResponse for ConnectionNotUpgradable
impl IntoResponse for ConnectionNotUpgradable
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for ConnectionNotUpgradable
impl RefUnwindSafe for ConnectionNotUpgradable
impl Send for ConnectionNotUpgradable
impl Sync for ConnectionNotUpgradable
impl Unpin for ConnectionNotUpgradable
impl UnwindSafe for ConnectionNotUpgradable
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