Trait actix_web::http::header::IntoHeaderPair[][src]

pub trait IntoHeaderPair {
    type Error: Into<Error>;
    pub fn try_into_header_pair(
        self
    ) -> Result<(HeaderName, HeaderValue), Self::Error>; }

Transforms structures into header K/V pairs for inserting into HeaderMaps.

Associated Types

Loading content...

Required methods

Loading content...

Implementations on Foreign Types

impl<'_, V> IntoHeaderPair for (&'_ HeaderName, V) where
    V: IntoHeaderValue,
    <V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

impl<'_, V> IntoHeaderPair for (&'_ str, V) where
    V: IntoHeaderValue,
    <V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

impl<V> IntoHeaderPair for (HeaderName, V) where
    V: IntoHeaderValue,
    <V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

impl<'_, V> IntoHeaderPair for (&'_ [u8], V) where
    V: IntoHeaderValue,
    <V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

impl<V> IntoHeaderPair for (String, V) where
    V: IntoHeaderValue,
    <V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>, 
[src]

type Error = InvalidHeaderPart

Loading content...

Implementors

impl<T> IntoHeaderPair for T where
    T: Header
[src]

Loading content...