Skip to main content

HttpError

Trait HttpError 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§