pub trait IntoStatusCode {
    // Required method
    fn into_status_code(self) -> u16;
}
Expand description

A trait for any type that can be turned into a Response status code

Required Methods§

source

fn into_status_code(self) -> u16

Turn self into a status code

Implementations on Foreign Types§

source§

impl IntoStatusCode for u16

source§

impl IntoStatusCode for StatusCode

Implementors§