Skip to main content

ToHttpStatus

Trait ToHttpStatus 

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§