Struct hyper::header::HeaderFormatter [−][src]
pub struct HeaderFormatter<'a, H: HeaderFormat>(pub &'a H);
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 representation of a Header which will be written to an
outgoing TcpStream.
Trait Implementations
impl<'a, H: HeaderFormat> Display for HeaderFormatter<'a, H>
[src]
impl<'a, H: HeaderFormat> Display for HeaderFormatter<'a, H>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a, H: HeaderFormat> Debug for HeaderFormatter<'a, H>
[src]
impl<'a, H: HeaderFormat> Debug for HeaderFormatter<'a, H>
Auto Trait Implementations
impl<'a, H> Send for HeaderFormatter<'a, H>
impl<'a, H> Send for HeaderFormatter<'a, H>
impl<'a, H> Sync for HeaderFormatter<'a, H>
impl<'a, H> Sync for HeaderFormatter<'a, H>