pub trait ResponseForPanic: Clone {
// Required method
fn response_for_panic(
&self,
err: Box<dyn Any + Send + 'static>,
) -> Response<Body>;
}
Expand description
Trait for creating responses from panics.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.