Trait actix_http::header::IntoHeaderPair [−][src]
pub trait IntoHeaderPair: Sized { type Error: Into<HttpError>; fn try_into_header_pair(
self
) -> Result<(HeaderName, HeaderValue), Self::Error>; }
Expand description
Transforms structures into header K/V pairs for inserting into HeaderMap
s.
Associated Types
Required methods
fn try_into_header_pair(self) -> Result<(HeaderName, HeaderValue), Self::Error>
Implementations on Foreign Types
impl<V> IntoHeaderPair for (HeaderName, V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
impl<V> IntoHeaderPair for (HeaderName, V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart
impl<V> IntoHeaderPair for (&HeaderName, V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
impl<V> IntoHeaderPair for (&HeaderName, V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart
impl<V> IntoHeaderPair for (&[u8], V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
impl<V> IntoHeaderPair for (&[u8], V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart
impl<V> IntoHeaderPair for (&str, V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
impl<V> IntoHeaderPair for (&str, V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart
impl<V> IntoHeaderPair for (String, V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
impl<V> IntoHeaderPair for (String, V) where
V: IntoHeaderValue,
V::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart