Trait poem::middleware::PanicHandler
source · pub trait PanicHandler: Clone + Sync + Send + 'static {
type Response: IntoResponse;
fn get_response(&self, err: Box<dyn Any + Send + 'static>) -> Self::Response;
}
Expand description
Panics handler
Required Associated Types
sourcetype Response: IntoResponse
type Response: IntoResponse
Response type