pub enum ChainError<Ex, E> {
Extract(Ex),
Chain(E),
}Variants§
Trait Implementations§
Source§impl<Ex, E> Display for ChainError<Ex, E>
impl<Ex, E> Display for ChainError<Ex, E>
Source§impl<Ex, E> Error for ChainError<Ex, E>
impl<Ex, E> Error for ChainError<Ex, E>
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<Ex, E> From<ChainError<Ex, E>> for Responsewhere
Ex: IntoResponse,
E: IntoResponse,
Available on crate feature axum only.
impl<Ex, E> From<ChainError<Ex, E>> for Responsewhere
Ex: IntoResponse,
E: IntoResponse,
Available on crate feature
axum only.Source§fn from(value: ChainError<Ex, E>) -> Self
fn from(value: ChainError<Ex, E>) -> Self
Converts to this type from the input type.
Source§impl<Ex, E> IntoResponse for ChainError<Ex, E>where
Ex: IntoResponse,
E: IntoResponse,
Available on crate feature axum only.
impl<Ex, E> IntoResponse for ChainError<Ex, E>where
Ex: IntoResponse,
E: IntoResponse,
Available on crate feature
axum only.Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<Ex, E> Freeze for ChainError<Ex, E>
impl<Ex, E> RefUnwindSafe for ChainError<Ex, E>where
Ex: RefUnwindSafe,
E: RefUnwindSafe,
impl<Ex, E> Send for ChainError<Ex, E>
impl<Ex, E> Sync for ChainError<Ex, E>
impl<Ex, E> Unpin for ChainError<Ex, E>
impl<Ex, E> UnsafeUnpin for ChainError<Ex, E>where
Ex: UnsafeUnpin,
E: UnsafeUnpin,
impl<Ex, E> UnwindSafe for ChainError<Ex, E>where
Ex: UnwindSafe,
E: 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