IntoHttpCode

Trait IntoHttpCode 

Source
pub trait IntoHttpCode {
    // Required method
    fn into_http_code(self) -> HttpCode;
}
Expand description

Trait to convert various types into an HttpCode.

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoHttpCode for (u16, &'static str, &'static str)

Implement IntoHttpCode for u16, converting it to an HttpCode with default values.

Source§

fn into_http_code(self) -> HttpCode

Converts a tuple of (code, name, description) into an HttpCode.

Implementors§