pub trait HasStatusCode {
// Required method
fn status_code(&self) -> StatusCode;
}Expand description
Trait for types that can provide a status code.
Required Methods§
Sourcefn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Get the status code.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".