Skip to main content

Module panic

Module panic 

Source
Expand description

Catching panics inside a handler so one bad request cannot take down the connection — and so the dev error page can show where it happened.

Structs§

CatchUnwind
A future that catches a panic raised while polling the inner future.
PanicLocation
Where the last panic on this thread happened, captured by our hook because the payload alone does not carry a location.

Functions§

catch
Run a future, converting a panic into an Err.
install_hook
Install a panic hook that records the location and stays quiet.
message_of
Turn a panic payload into a readable message.
take_location