Struct hyperx::header::Formatter

source ·
pub struct Formatter<'a, 'b: 'a>(_);
Expand description

A formatter used to serialize headers to an output stream.

Implementations§

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§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.