Skip to main content

AsStatusCode

Trait AsStatusCode 

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§