Trait awc::http::header::TryIntoHeaderValue

pub trait TryIntoHeaderValue: Sized {
    type Error: Into<Error>;

    // Required method
    fn try_into_value(self) -> Result<HeaderValue, Self::Error>;
}
Expand description

An interface for types that can be converted into a HeaderValue.

Required Associated Types§

type Error: Into<Error>

The type returned in the event of a conversion error.

Required Methods§

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

Try to convert value to a HeaderValue.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl TryIntoHeaderValue for &str

§

impl TryIntoHeaderValue for &[u8]

§

impl TryIntoHeaderValue for i32

§

impl TryIntoHeaderValue for i64

§

impl TryIntoHeaderValue for u32

§

impl TryIntoHeaderValue for u64

§

impl TryIntoHeaderValue for usize

§

impl TryIntoHeaderValue for String

§

impl TryIntoHeaderValue for Vec<u8>

§

impl TryIntoHeaderValue for Mime

§

impl TryIntoHeaderValue for Bytes

Implementors§