Trait rama::http::layer::catch_panic::ResponseForPanic

pub trait ResponseForPanic: Clone {
    // Required method
    fn response_for_panic(&self, err: Box<dyn Any + Send>) -> Response<Body>;
}
Expand description

Trait for creating responses from panics.

Required Methods§

fn response_for_panic(&self, err: Box<dyn Any + Send>) -> Response<Body>

Create a response from the panic error.

Object Safety§

This trait is not object safe.

Implementors§