Skip to main content

HasStatusCode

Trait HasStatusCode 

Source
pub trait HasStatusCode {
    // Required method
    fn status_code(&self) -> StatusCode;
}
Expand description

Trait for types that can provide a status code.

Required Methods§

Source

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".

Implementors§