Trait actix_http::header::TryIntoHeaderValue

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

    // 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§

source

type Error: Into<HttpError>

The type returned in the event of a conversion error.

Required Methods§

source

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§

source§

impl TryIntoHeaderValue for &str

source§

impl TryIntoHeaderValue for &[u8]

source§

impl TryIntoHeaderValue for i32

source§

impl TryIntoHeaderValue for i64

source§

impl TryIntoHeaderValue for u32

source§

impl TryIntoHeaderValue for u64

source§

impl TryIntoHeaderValue for usize

source§

impl TryIntoHeaderValue for Bytes

source§

impl TryIntoHeaderValue for Mime

source§

impl TryIntoHeaderValue for String

source§

impl TryIntoHeaderValue for Vec<u8>

Implementors§