Trait fire_http_representation::header::IntoHeaderValue[][src]

pub trait IntoHeaderValue {
    fn try_into_header_value(self) -> Option<HeaderValue>;
}
Expand description

Converts a value into a HeaderValue.

Some types can not be converted for sure, like string’s and bytes. Numbers (except floats) cannot fail.

Required methods

fn try_into_header_value(self) -> Option<HeaderValue>[src]

Tries to convert to a HeaderValue.

Implementations on Foreign Types

impl IntoHeaderValue for HeaderName[src]

impl IntoHeaderValue for i16[src]

impl IntoHeaderValue for i32[src]

impl IntoHeaderValue for i64[src]

impl IntoHeaderValue for isize[src]

impl IntoHeaderValue for u16[src]

impl IntoHeaderValue for u32[src]

impl IntoHeaderValue for u64[src]

impl IntoHeaderValue for usize[src]

impl IntoHeaderValue for String[src]

impl IntoHeaderValue for Vec<u8>[src]

impl<'a> IntoHeaderValue for &'a HeaderValue[src]

impl<'a> IntoHeaderValue for &'a [u8][src]

impl<'a> IntoHeaderValue for &'a str[src]

Implementors