Trait actix_web::http::header::TryIntoHeaderValue

source ·
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§

source

type Error: Into<Error>

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 Mime

source§

impl TryIntoHeaderValue for String

source§

impl TryIntoHeaderValue for Vec<u8>

Implementors§

source§

impl TryIntoHeaderValue for &HeaderValue

source§

impl TryIntoHeaderValue for ContentEncoding

source§

impl TryIntoHeaderValue for ContentRangeSpec

source§

impl TryIntoHeaderValue for IfMatch

source§

impl TryIntoHeaderValue for IfNoneMatch

source§

impl TryIntoHeaderValue for IfRange

source§

impl TryIntoHeaderValue for Range

source§

impl TryIntoHeaderValue for Bytes

source§

impl TryIntoHeaderValue for Accept

source§

impl TryIntoHeaderValue for AcceptCharset

source§

impl TryIntoHeaderValue for AcceptEncoding

source§

impl TryIntoHeaderValue for AcceptLanguage

source§

impl TryIntoHeaderValue for Allow

source§

impl TryIntoHeaderValue for CacheControl

source§

impl TryIntoHeaderValue for ContentDisposition

source§

impl TryIntoHeaderValue for ContentLanguage

source§

impl TryIntoHeaderValue for ContentLength

source§

impl TryIntoHeaderValue for ContentRange

source§

impl TryIntoHeaderValue for ContentType

source§

impl TryIntoHeaderValue for Date

source§

impl TryIntoHeaderValue for ETag

source§

impl TryIntoHeaderValue for EntityTag

source§

impl TryIntoHeaderValue for Expires

source§

impl TryIntoHeaderValue for HeaderValue

source§

impl TryIntoHeaderValue for HttpDate

source§

impl TryIntoHeaderValue for IfModifiedSince

source§

impl TryIntoHeaderValue for IfUnmodifiedSince

source§

impl TryIntoHeaderValue for LastModified