Struct spa_rs::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
sourceimpl<F, T> HandleErrorLayer<F, T>
impl<F, T> HandleErrorLayer<F, T>
sourcepub fn new(f: F) -> HandleErrorLayer<F, T>
pub fn new(f: F) -> HandleErrorLayer<F, T>
Create a new HandleErrorLayer.
Trait Implementations
sourceimpl<F, T> Clone for HandleErrorLayer<F, T> where
F: Clone,
impl<F, T> Clone for HandleErrorLayer<F, T> where
F: Clone,
sourcefn clone(&self) -> HandleErrorLayer<F, T>
fn clone(&self) -> HandleErrorLayer<F, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<F, E> Debug for HandleErrorLayer<F, E>
impl<F, E> Debug for HandleErrorLayer<F, E>
sourceimpl<S, F, T> Layer<S> for HandleErrorLayer<F, T> where
F: Clone,
impl<S, F, T> Layer<S> for HandleErrorLayer<F, T> where
F: Clone,
type Service = HandleError<S, F, T>
type Service = HandleError<S, F, T>
The wrapped service
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more