[][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 Eq for HeaderField[src]

impl Clone for HeaderField[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<HeaderField> for HeaderField[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Display for HeaderField[src]

impl Debug for HeaderField[src]

impl FromStr for HeaderField[src]

type Err = ()

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Unpin for HeaderField

impl Sync for HeaderField

impl Send for HeaderField

impl UnwindSafe for HeaderField

impl RefUnwindSafe for HeaderField

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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