[][src]Struct httpbis::HeaderValue

pub struct HeaderValue(_);

A convenience struct representing a header value.

Implementations

impl HeaderValue[src]

pub fn from_bytes(bs: Bytes) -> Result<HeaderValue, (HeaderError, Bytes)>[src]

Validate and create header value from bytes.

pub fn into_inner(self) -> Bytes[src]

Into underlying storage object.

pub fn as_slice(&self) -> &[u8][src]

As bytes.

pub const unsafe fn from_bytes_unchecked(bytes: Bytes) -> HeaderValue[src]

Unsafe no-validation const constructor.

Trait Implementations

impl AsRef<[u8]> for HeaderValue[src]

impl AsRef<str> for HeaderValue[src]

impl Clone for HeaderValue[src]

impl Debug for HeaderValue[src]

impl Eq for HeaderValue[src]

impl<'a> From<&'a [u8]> for HeaderValue[src]

impl<'a> From<&'a str> for HeaderValue[src]

impl From<Bytes> for HeaderValue[src]

impl From<String> for HeaderValue[src]

impl From<Vec<u8>> for HeaderValue[src]

impl Hash for HeaderValue[src]

impl Into<Bytes> for HeaderValue[src]

impl PartialEq<HeaderValue> for HeaderValue[src]

impl StructuralEq for HeaderValue[src]

impl StructuralPartialEq for HeaderValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.