fixed_payload

Function fixed_payload 

Source
pub fn fixed_payload<R>(payload: R) -> FixedPayload<R>
Available on crate feature server only.
Expand description

Create a panic handler which can work with volo::catch_panic::Layer. The handler will always return the specified fixed payload as response.