[][src]Struct hyper::header::Formatter

pub struct Formatter<'a, 'b: 'a>(_);

A formatter used to serialize headers to an output stream.

Methods

impl<'a, 'b> Formatter<'a, 'b>[src]

pub fn fmt_line(&mut self, line: &dyn Display) -> Result[src]

Format one 'line' of a header.

This writes the header name plus the Display value as a single line.

Note

This has the ability to format a header over multiple lines.

The main example here is Set-Cookie, which requires that every cookie being set be specified in a separate line. Almost every other case should only format as 1 single line.

Auto Trait Implementations

impl<'a, 'b> !RefUnwindSafe for Formatter<'a, 'b>

impl<'a, 'b> !Send for Formatter<'a, 'b>

impl<'a, 'b> !Sync for Formatter<'a, 'b>

impl<'a, 'b> Unpin for Formatter<'a, 'b> where
    'b: 'a, 

impl<'a, 'b> !UnwindSafe for Formatter<'a, 'b>

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, 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.