pub trait AsStatusCode {
// Required method
fn as_status_code(&self) -> StatusCode;
}Expand description
Get the status code from the error type if possible.
Required Methods§
fn as_status_code(&self) -> StatusCode
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".