Struct HandleErrorLayer
struct HandleErrorLayer<F, T> { ... }
Layer that applies HandleError which is a Service adapter
that handles errors by converting them into responses.
See module docs for more details on axum's error handling model.
Implementations
impl<F, T> HandleErrorLayer<F, T>
fn new(f: F) -> SelfCreate a new
HandleErrorLayer.
impl<F, E> Debug for HandleErrorLayer<F, E>
fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl<F, T> Clone for HandleErrorLayer<F, T>
fn clone(self: &Self) -> Self
impl<F, T> Freeze for HandleErrorLayer<F, T>
impl<F, T> RefUnwindSafe for HandleErrorLayer<F, T>
impl<F, T> Send for HandleErrorLayer<F, T>
impl<F, T> Sync for HandleErrorLayer<F, T>
impl<F, T> Unpin for HandleErrorLayer<F, T>
impl<F, T> UnwindSafe for HandleErrorLayer<F, T>
impl<S, F, T> Layer for HandleErrorLayer<F, T>
fn layer(self: &Self, inner: S) -> <Self as >::Service
impl<T> Any for HandleErrorLayer<F, T>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for HandleErrorLayer<F, T>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for HandleErrorLayer<F, T>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for HandleErrorLayer<F, T>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for HandleErrorLayer<F, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FromRef for HandleErrorLayer<F, T>
fn from_ref(input: &T) -> T
impl<T> Instrument for HandleErrorLayer<F, T>
impl<T> Same for HandleErrorLayer<F, T>
impl<T> ToOwned for HandleErrorLayer<F, T>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> WithSubscriber for HandleErrorLayer<F, T>
impl<T, U> Into for HandleErrorLayer<F, T>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for HandleErrorLayer<F, T>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for HandleErrorLayer<F, T>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip for HandleErrorLayer<F, T>
fn vzip(self: Self) -> V