Trait ajars_actix_web::actix_web::http::header::IntoHeaderValue [−]
pub trait IntoHeaderValue { type Error: Into<Error>; fn try_into_value(self) -> Result<HeaderValue, Self::Error>; }
Expand description
A trait for any object that can be Converted to a HeaderValue
Associated Types
Required methods
fn try_into_value(self) -> Result<HeaderValue, Self::Error>
fn try_into_value(self) -> Result<HeaderValue, Self::Error>
Try to convert value to a HeaderValue.
Implementations on Foreign Types
impl IntoHeaderValue for i32
impl IntoHeaderValue for i32
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <i32 as IntoHeaderValue>::Error>
impl IntoHeaderValue for Vec<u8, Global>
impl IntoHeaderValue for Vec<u8, Global>
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <Vec<u8, Global> as IntoHeaderValue>::Error>
impl IntoHeaderValue for u32
impl IntoHeaderValue for u32
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <u32 as IntoHeaderValue>::Error>
impl<'_> IntoHeaderValue for &'_ str
impl<'_> IntoHeaderValue for &'_ str
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <&'_ str as IntoHeaderValue>::Error>
impl<'_> IntoHeaderValue for &'_ [u8]
impl<'_> IntoHeaderValue for &'_ [u8]
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <&'_ [u8] as IntoHeaderValue>::Error>
impl IntoHeaderValue for String
impl IntoHeaderValue for String
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <String as IntoHeaderValue>::Error>
impl IntoHeaderValue for Mime
impl IntoHeaderValue for Mime
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <Mime as IntoHeaderValue>::Error>
impl IntoHeaderValue for u64
impl IntoHeaderValue for u64
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <u64 as IntoHeaderValue>::Error>
impl IntoHeaderValue for usize
impl IntoHeaderValue for usize
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <usize as IntoHeaderValue>::Error>
impl IntoHeaderValue for i64
impl IntoHeaderValue for i64
type Error = InvalidHeaderValue
pub fn try_into_value(
self
) -> Result<HeaderValue, <i64 as IntoHeaderValue>::Error>
Implementors
impl IntoHeaderValue for ContentEncoding
impl IntoHeaderValue for Bytes
impl IntoHeaderValue for HeaderValue
impl IntoHeaderValue for HttpDate
impl<'_> IntoHeaderValue for &'_ HeaderValue