pub trait ToHttpStatus {
// Required method
fn to_http_status(&self) -> StatusCode;
}Expand description
A trait to get the HTTP status code for a given Error.
Required Methods§
fn to_http_status(&self) -> StatusCode
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".