pub trait ResponseForPanic: Clone {
    type ResponseBody;

    fn response_for_panic(
        &mut self,
        err: Box<dyn Any + Send + 'static>
    ) -> Response<Self::ResponseBody>; }
Available on crate feature catch-panic only.
Expand description

Trait for creating responses from panics.

Required Associated Types§

The body type used for responses to panics.

Required Methods§

Create a response from the panic error.

Implementors§