Skip to main content

catch_panic_layer

Function catch_panic_layer 

Source
pub fn catch_panic_layer() -> CatchPanicLayer
Expand description

Creates a layer that catches panics from the inner service and maps them to a 500 Internal Server Error response.

See CatchPanicLayer for details.