Struct poem::endpoint::CatchError
source · pub struct CatchError<E, F, R, ErrType> { /* private fields */ }
Expand description
Endpoint for the catch_error
method.
Trait Implementations
sourceimpl<E, F, Fut, R, ErrType> Endpoint for CatchError<E, F, R, ErrType>where
E: Endpoint,
F: Fn(ErrType) -> Fut + Send + Sync,
Fut: Future<Output = R> + Send,
R: IntoResponse + Send + Sync,
ErrType: Error + Send + Sync + 'static,
impl<E, F, Fut, R, ErrType> Endpoint for CatchError<E, F, R, ErrType>where
E: Endpoint,
F: Fn(ErrType) -> Fut + Send + Sync,
Fut: Future<Output = R> + Send,
R: IntoResponse + Send + Sync,
ErrType: Error + Send + Sync + 'static,
Auto Trait Implementations
impl<E, F, R, ErrType> RefUnwindSafe for CatchError<E, F, R, ErrType>where
E: RefUnwindSafe,
ErrType: RefUnwindSafe,
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<E, F, R, ErrType> Send for CatchError<E, F, R, ErrType>where
E: Send,
ErrType: Send,
F: Send,
R: Send,
impl<E, F, R, ErrType> Sync for CatchError<E, F, R, ErrType>where
E: Sync,
ErrType: Sync,
F: Sync,
R: Sync,
impl<E, F, R, ErrType> Unpin for CatchError<E, F, R, ErrType>where
E: Unpin,
ErrType: Unpin,
F: Unpin,
R: Unpin,
impl<E, F, R, ErrType> UnwindSafe for CatchError<E, F, R, ErrType>where
E: UnwindSafe,
ErrType: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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