always_internal_error

Function always_internal_error 

Source
pub fn always_internal_error<Cx, E>(
    _: &mut Cx,
    _: Box<dyn Any + Send>,
    panic_info: PanicInfo,
) -> Result<Response, E>
Available on crate feature server only.
Expand description

This function is a panic handler and can work with volo::catch_panic::Layer, it will always return 500 Internal Server Error.