#[non_exhaustive]pub struct ConnectionNotUpgradable;
Available on crate feature
ws
only.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.
Trait Implementations
sourceimpl Debug for ConnectionNotUpgradable
impl Debug for ConnectionNotUpgradable
sourceimpl Default for ConnectionNotUpgradable
impl Default for ConnectionNotUpgradable
sourceimpl Display for ConnectionNotUpgradable
impl Display for ConnectionNotUpgradable
sourceimpl Error for ConnectionNotUpgradable
impl Error for ConnectionNotUpgradable
1.30.0 · 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()
sourceimpl From<ConnectionNotUpgradable> for WebSocketUpgradeRejection
impl From<ConnectionNotUpgradable> for WebSocketUpgradeRejection
sourcefn from(inner: ConnectionNotUpgradable) -> Self
fn from(inner: ConnectionNotUpgradable) -> Self
Converts to this type from the input type.
sourceimpl IntoResponse for ConnectionNotUpgradable
impl IntoResponse for ConnectionNotUpgradable
sourcefn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations
impl RefUnwindSafe for ConnectionNotUpgradable
impl Send for ConnectionNotUpgradable
impl Sync for ConnectionNotUpgradable
impl Unpin for ConnectionNotUpgradable
impl UnwindSafe for ConnectionNotUpgradable
Blanket Implementations
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