Struct MethodNotConnect

#[non_exhaustive]
pub struct MethodNotConnect;

Rejection type for WebSocketUpgrade.

Implementations

impl MethodNotConnect

fn body_text(&self) -> String

Get the response body text used for this rejection.

fn status(&self) -> StatusCode

Get the status code used for this rejection.

Trait Implementations

impl Debug for MethodNotConnect

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

impl Default for MethodNotConnect

fn default() -> Self

impl Display for MethodNotConnect

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

impl Error for MethodNotConnect

impl IntoResponse for MethodNotConnect

fn into_response(self) -> Response

Auto Trait Implementations

impl Freeze for MethodNotConnect

impl RefUnwindSafe for MethodNotConnect

impl Send for MethodNotConnect

impl Sync for MethodNotConnect

impl Unpin for MethodNotConnect

impl UnsafeUnpin for MethodNotConnect

impl UnwindSafe for MethodNotConnect

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for MethodNotConnect where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for MethodNotConnect where ST: ?Sized, DT: ?Sized,

impl<T> Any for MethodNotConnect where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for MethodNotConnect where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for MethodNotConnect where T: ?Sized,

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

impl<T> From<T> for MethodNotConnect

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for MethodNotConnect

impl<T> Read<Exclusive, BecauseExclusive> for MethodNotConnect where T: ?Sized,

impl<T> Same for MethodNotConnect

type Output = T;

impl<T> ToString for MethodNotConnect where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T> WithSubscriber for MethodNotConnect

impl<T, U> Into<U> for MethodNotConnect where U: From<T>,

fn into(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<U> for MethodNotConnect where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for MethodNotConnect 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 MethodNotConnect where V: MultiLane<T>,

fn vzip(self) -> V