Trait poem::middleware::PanicHandler
source · pub trait PanicHandler: Clone + Sync + Send + 'static {
type Response: IntoResponse;
// Required method
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
Required Methods§
Object Safety§
This trait is not object safe.