Trait actix_web::http::header::IntoHeaderPair [−][src]
Transforms structures into header K/V pairs for inserting into HeaderMap
s.
Associated Types
Loading content...Required methods
pub fn try_into_header_pair(
self
) -> Result<(HeaderName, HeaderValue), Self::Error>
[src]
self
) -> Result<(HeaderName, HeaderValue), Self::Error>
Implementations on Foreign Types
impl<'_, V> IntoHeaderPair for (&'_ HeaderName, V) where
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
[src]
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart
pub fn try_into_header_pair(
self
) -> Result<(HeaderName, HeaderValue), <(&'_ HeaderName, V) as IntoHeaderPair>::Error>
[src]
self
) -> Result<(HeaderName, HeaderValue), <(&'_ HeaderName, V) as IntoHeaderPair>::Error>
impl<'_, V> IntoHeaderPair for (&'_ str, V) where
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
[src]
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart
pub fn try_into_header_pair(
self
) -> Result<(HeaderName, HeaderValue), <(&'_ str, V) as IntoHeaderPair>::Error>
[src]
self
) -> Result<(HeaderName, HeaderValue), <(&'_ str, V) as IntoHeaderPair>::Error>
impl<V> IntoHeaderPair for (String, V) where
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
[src]
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart
pub fn try_into_header_pair(
self
) -> Result<(HeaderName, HeaderValue), <(String, V) as IntoHeaderPair>::Error>
[src]
self
) -> Result<(HeaderName, HeaderValue), <(String, V) as IntoHeaderPair>::Error>
impl<'_, V> IntoHeaderPair for (&'_ [u8], V) where
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
[src]
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart
pub fn try_into_header_pair(
self
) -> Result<(HeaderName, HeaderValue), <(&'_ [u8], V) as IntoHeaderPair>::Error>
[src]
self
) -> Result<(HeaderName, HeaderValue), <(&'_ [u8], V) as IntoHeaderPair>::Error>
impl<V> IntoHeaderPair for (HeaderName, V) where
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
[src]
V: IntoHeaderValue,
<V as IntoHeaderValue>::Error: Into<InvalidHeaderValue>,
type Error = InvalidHeaderPart
pub fn try_into_header_pair(
self
) -> Result<(HeaderName, HeaderValue), <(HeaderName, V) as IntoHeaderPair>::Error>
[src]
self
) -> Result<(HeaderName, HeaderValue), <(HeaderName, V) as IntoHeaderPair>::Error>
Implementors
impl<T> IntoHeaderPair for T where
T: Header,
[src]
T: Header,
type Error = <T as IntoHeaderValue>::Error
pub fn try_into_header_pair(
self
) -> Result<(HeaderName, HeaderValue), <T as IntoHeaderPair>::Error>
[src]
self
) -> Result<(HeaderName, HeaderValue), <T as IntoHeaderPair>::Error>