Struct axum::error_handling::HandleErrorLayer
source · [−]pub struct HandleErrorLayer<F, T> { /* private fields */ }
Expand description
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
Trait Implementations
Auto Trait Implementations
impl<F, T> RefUnwindSafe for HandleErrorLayer<F, T> where
F: RefUnwindSafe,
impl<F, T> Send for HandleErrorLayer<F, T> where
F: Send,
impl<F, T> Sync for HandleErrorLayer<F, T> where
F: Sync,
impl<F, T> Unpin for HandleErrorLayer<F, T> where
F: Unpin,
impl<F, T> UnwindSafe for HandleErrorLayer<F, T> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more