Struct ConnectionNotUpgradable
#[non_exhaustive]
pub 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) -> StringGet the response body text used for this rejection.
fn status(&self) -> StatusCodeGet the status code used for this rejection.
Trait Implementations
impl Debug for ConnectionNotUpgradable
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ConnectionNotUpgradable
fn default() -> Self
impl Display for ConnectionNotUpgradable
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for ConnectionNotUpgradable
impl IntoResponse for ConnectionNotUpgradable
fn into_response(self) -> 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 UnsafeUnpin for ConnectionNotUpgradable
impl UnwindSafe for ConnectionNotUpgradable
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ConnectionNotUpgradable
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ConnectionNotUpgradable
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for ConnectionNotUpgradable
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ConnectionNotUpgradable
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ConnectionNotUpgradable
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ConnectionNotUpgradable
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for ConnectionNotUpgradable
impl<T> Read<Exclusive, BecauseExclusive> for ConnectionNotUpgradable
where
T: ?Sized,
impl<T> Same for ConnectionNotUpgradable
type Output = T;
impl<T> ToString for ConnectionNotUpgradable
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T> WithSubscriber for ConnectionNotUpgradable
impl<T, U> Into<U> for ConnectionNotUpgradable
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ConnectionNotUpgradable
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ConnectionNotUpgradable
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for ConnectionNotUpgradable
where
V: MultiLane<T>,
fn vzip(self) -> V