Struct ConnectionNotUpgradable

struct ConnectionNotUpgradable

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

impl ConnectionNotUpgradable

fn body_text(self: &Self) -> String

Get the response body text used for this rejection.

fn status(self: &Self) -> http::StatusCode

Get the status code used for this rejection.

impl Debug for ConnectionNotUpgradable

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Default for ConnectionNotUpgradable

fn default() -> Self

impl Display for ConnectionNotUpgradable

fn fmt(self: &Self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result

impl Error for ConnectionNotUpgradable

impl Freeze for ConnectionNotUpgradable

impl IntoResponse for ConnectionNotUpgradable

fn into_response(self: Self) -> $crate::response::Response

impl RefUnwindSafe for ConnectionNotUpgradable

impl Send for ConnectionNotUpgradable

impl Sync for ConnectionNotUpgradable

impl Unpin for ConnectionNotUpgradable

impl UnwindSafe for ConnectionNotUpgradable

impl<T> Any for ConnectionNotUpgradable

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ConnectionNotUpgradable

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ConnectionNotUpgradable

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for ConnectionNotUpgradable

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for ConnectionNotUpgradable

impl<T> Same for ConnectionNotUpgradable

impl<T> ToString for ConnectionNotUpgradable

fn to_string(self: &Self) -> String

impl<T> WithSubscriber for ConnectionNotUpgradable

impl<T, U> Into for ConnectionNotUpgradable

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ConnectionNotUpgradable

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ConnectionNotUpgradable

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for ConnectionNotUpgradable

fn vzip(self: Self) -> V