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

Response type

Required Methods

Call this method to create a response when a panic occurs.

Implementations on Foreign Types

Implementors