pub struct DynHttpError<I: IntoHttpErrorResponse = TextErrorResponse> { /* private fields */ }
Expand description
Structure that stores dynamic error responses, see documentation home page for usage
Trait Implementations§
Source§impl Debug for DynHttpError
impl Debug for DynHttpError
Source§impl Display for DynHttpError
impl Display for DynHttpError
Source§impl Error for DynHttpError
impl Error for DynHttpError
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<E, I> From<E> for DynHttpError<I>where
E: HttpError,
I: IntoHttpErrorResponse,
Allow conversion from implementors of HttpError into a DynHttpError
impl<E, I> From<E> for DynHttpError<I>where
E: HttpError,
I: IntoHttpErrorResponse,
Allow conversion from implementors of HttpError into a DynHttpError
Source§impl<I> From<Error> for DynHttpError<I>where
I: IntoHttpErrorResponse,
Allow conversion from anyhow errors into DynHttpError by wrapping
them with AnyhowHttpError
impl<I> From<Error> for DynHttpError<I>where
I: IntoHttpErrorResponse,
Allow conversion from anyhow errors into DynHttpError by wrapping them with AnyhowHttpError
Source§impl<I: IntoHttpErrorResponse> IntoResponse for DynHttpError<I>
impl<I: IntoHttpErrorResponse> IntoResponse for DynHttpError<I>
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<I> Freeze for DynHttpError<I>
impl<I = TextErrorResponse> !RefUnwindSafe for DynHttpError<I>
impl<I> Send for DynHttpError<I>where
I: Send,
impl<I> Sync for DynHttpError<I>where
I: Sync,
impl<I> Unpin for DynHttpError<I>where
I: Unpin,
impl<I = TextErrorResponse> !UnwindSafe for DynHttpError<I>
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<E> ErrorExt for E
impl<E> ErrorExt for E
Source§fn into_generic(self) -> GenericServerError
fn into_generic(self) -> GenericServerError
Converts this error into a generic error