pub struct HttpErrorResponse<F: FormatResponse> {
pub http_error: Box<HttpError>,
/* private fields */
}Expand description
Type representing an error response.
Fields§
§http_error: Box<HttpError>Trait Implementations§
Source§impl<F: Debug + FormatResponse> Debug for HttpErrorResponse<F>
impl<F: Debug + FormatResponse> Debug for HttpErrorResponse<F>
Source§impl<E, F> From<E> for HttpErrorResponse<F>
impl<E, F> From<E> for HttpErrorResponse<F>
Source§impl<F: FormatResponse> IntoResponse for HttpErrorResponse<F>
Available on crate feature axum only.
impl<F: FormatResponse> IntoResponse for HttpErrorResponse<F>
Available on crate feature
axum only.Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<F> Freeze for HttpErrorResponse<F>
impl<F> RefUnwindSafe for HttpErrorResponse<F>where
F: RefUnwindSafe,
impl<F> Send for HttpErrorResponse<F>where
F: Send,
impl<F> Sync for HttpErrorResponse<F>where
F: Sync,
impl<F> Unpin for HttpErrorResponse<F>where
F: Unpin,
impl<F> UnwindSafe for HttpErrorResponse<F>where
F: UnwindSafe,
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