panic_response

Function panic_response 

Source
pub fn panic_response(panic: Box<dyn Any + Send + 'static>) -> Response
Expand description

The CatchPanicLayer response. That layer sits outside this one, so it renders the envelope itself, as an INTERNAL_ERROR. The panic payload is file-derived text and goes to the log, never to the client.