[][src]Struct hyper::header::HeaderFormatter

pub struct HeaderFormatter<'a, H: HeaderFormat>(pub &'a H);
Deprecated

: The semantics of formatting a HeaderFormat directly are not clear

A wrapper around any Header with a Display impl that calls fmt_header.

This can be used like so: format!("{}", HeaderFormatter(&header)) to get the 'value string' representation of this Header.

Note: This may not necessarily be the value written to stream, such as with the SetCookie header.

Trait Implementations

impl<'a, H: HeaderFormat> Debug for HeaderFormatter<'a, H>
[src]

Formats the value using the given formatter. Read more

impl<'a, H: HeaderFormat> Display for HeaderFormatter<'a, H>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, H> Send for HeaderFormatter<'a, H>

impl<'a, H> Sync for HeaderFormatter<'a, H>

Blanket Implementations

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

Performs the conversion.

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

Converts the given value to a String. Read more

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Typeable for T where
    T: Any
[src]

Get the TypeId of this object.