[−][src]Struct hyper::header::Formatter
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,
'b: 'a,
impl<'a, 'b> !UnwindSafe for Formatter<'a, 'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,