Trait actix_http::http::header::IntoHeaderValue[][src]

pub trait IntoHeaderValue: Sized {
    type Error: Into<HttpError>;
    fn try_into_value(self) -> Result<HeaderValue, Self::Error>;
}

A trait for any object that can be Converted to a HeaderValue

Associated Types

type Error: Into<HttpError>[src]

The type returned in the event of a conversion error.

Loading content...

Required methods

fn try_into_value(self) -> Result<HeaderValue, Self::Error>[src]

Try to convert value to a HeaderValue.

Loading content...

Implementations on Foreign Types

impl IntoHeaderValue for &str[src]

impl IntoHeaderValue for &[u8][src]

impl IntoHeaderValue for Bytes[src]

impl IntoHeaderValue for Vec<u8>[src]

impl IntoHeaderValue for String[src]

impl IntoHeaderValue for usize[src]

impl IntoHeaderValue for i64[src]

impl IntoHeaderValue for u64[src]

impl IntoHeaderValue for i32[src]

impl IntoHeaderValue for u32[src]

impl IntoHeaderValue for Mime[src]

Loading content...

Implementors

Loading content...