Trait GetAndConvertHeaders

Source
pub trait GetAndConvertHeaders {
    // Required methods
    fn get_and_convert<T: FromStr>(&self, header: &str) -> Option<T>;
    fn get_string(&self, header: &str) -> Option<String>;
}

Required Methods§

Source

fn get_and_convert<T: FromStr>(&self, header: &str) -> Option<T>

Source

fn get_string(&self, header: &str) -> Option<String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl GetAndConvertHeaders for HeaderMap

Source§

fn get_and_convert<T: FromStr>(&self, header: &str) -> Option<T>

Source§

fn get_string(&self, header: &str) -> Option<String>

Implementors§