[][src]Struct iron::headers::HeaderView

pub struct HeaderView<'a>(_, _);

Returned with the HeadersItems iterator.

Methods

impl<'a> HeaderView<'a>[src]

pub fn is<H>(&self) -> bool where
    H: Header
[src]

Check if a HeaderView is a certain Header.

pub fn name(&self) -> &'a str[src]

Get the Header name as a slice.

pub fn value<H>(&self) -> Option<&'a H> where
    H: Header + HeaderFormat
[src]

Cast the value to a certain Header type.

pub fn value_string(&self) -> String[src]

Get just the header value as a String.

This will join multiple values of this header with a , .

Warning: This may not be the format that should be used to send a Request or Response.

Trait Implementations

impl<'a> Extend<HeaderView<'a>> for Headers[src]

impl<'a> Display for HeaderView<'a>[src]

impl<'a> FromIterator<HeaderView<'a>> for Headers[src]

impl<'a> Debug for HeaderView<'a>[src]

Auto Trait Implementations

impl<'a> !Sync for HeaderView<'a>

impl<'a> Unpin for HeaderView<'a>

impl<'a> !Send for HeaderView<'a>

impl<'a> !UnwindSafe for HeaderView<'a>

impl<'a> !RefUnwindSafe for HeaderView<'a>

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[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]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> UnsafeAny for T where
    T: Any