pub trait HttpError:
StdError
+ Send
+ Sync
+ 'static {
// Required method
fn problem(&self) -> ProblemDetails;
}Expand description
Every domain error type implements HttpError. The framework converts to
a ProblemDetails body and the appropriate status code.
Required Methods§
fn problem(&self) -> ProblemDetails
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".