pub struct NoUpgradeHeaderError;Expand description
The Connection could not be upgraded because the “Upgrade” headed was missing.
Trait Implementations§
Source§impl Debug for NoUpgradeHeaderError
impl Debug for NoUpgradeHeaderError
Source§impl Display for NoUpgradeHeaderError
impl Display for NoUpgradeHeaderError
Source§impl Error for NoUpgradeHeaderError
impl Error for NoUpgradeHeaderError
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 ErrorWithStatusCode for NoUpgradeHeaderErrorwhere
Self: Display,
impl ErrorWithStatusCode for NoUpgradeHeaderErrorwhere
Self: Display,
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
The
StatusCode to return for this error.Source§impl IntoResponse for NoUpgradeHeaderErrorwhere
Self: Display,
impl IntoResponse for NoUpgradeHeaderErrorwhere
Self: Display,
Source§async fn write_to<R: Read, W: ResponseWriter<Error = R::Error>>(
self,
connection: Connection<'_, R>,
response_writer: W,
) -> Result<ResponseSent, W::Error>
async fn write_to<R: Read, W: ResponseWriter<Error = R::Error>>( self, connection: Connection<'_, R>, response_writer: W, ) -> Result<ResponseSent, W::Error>
Write the generated response into the given
ResponseWriter.Auto Trait Implementations§
impl Freeze for NoUpgradeHeaderError
impl RefUnwindSafe for NoUpgradeHeaderError
impl Send for NoUpgradeHeaderError
impl Sync for NoUpgradeHeaderError
impl Unpin for NoUpgradeHeaderError
impl UnwindSafe for NoUpgradeHeaderError
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
Source§impl<T, State> IntoResponseWithState<State> for Twhere
T: IntoResponse,
impl<T, State> IntoResponseWithState<State> for Twhere
T: IntoResponse,
Source§async fn write_to_with_state<R, W>(
self,
_state: &State,
connection: Connection<'_, R>,
response_writer: W,
) -> Result<ResponseSent, <W as ResponseWriter>::Error>
async fn write_to_with_state<R, W>( self, _state: &State, connection: Connection<'_, R>, response_writer: W, ) -> Result<ResponseSent, <W as ResponseWriter>::Error>
Write the generated response into the given
ResponseWriter.