[][src]Struct tiny_http::HeaderField

pub struct HeaderField(_);

Field of a header (eg. Content-Type, Content-Length, etc.)

Comparaison between two HeaderFields ignores case.

Methods

impl HeaderField[src]

pub fn from_bytes<B>(bytes: B) -> Result<HeaderField, FromAsciiError<B>> where
    B: Into<Vec<u8>> + AsRef<[u8]>, 
[src]

pub fn as_str<'a>(&'a self) -> &'a AsciiStr[src]

pub fn equiv(&self, other: &'static str) -> bool[src]

Trait Implementations

impl Clone for HeaderField[src]

impl Debug for HeaderField[src]

impl Display for HeaderField[src]

impl Eq for HeaderField[src]

impl FromStr for HeaderField[src]

type Err = ()

The associated error which can be returned from parsing.

impl PartialEq<HeaderField> for HeaderField[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> ToString for T where
    T: Display + ?Sized
[src]

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.