WriteBody

Trait WriteBody 

Source
pub trait WriteBody<W> {
    // Required method
    fn write_body(self: Box<Self>, w: &mut W) -> Result<(), Error>;
}
Expand description

A trait implemented by streaming bodies.

Required Methods§

Source

fn write_body(self: Box<Self>, w: &mut W) -> Result<(), Error>

Writes the body out, in its entirety.

Implementations on Foreign Types§

Source§

impl<W> WriteBody<W> for Vec<u8>
where W: Write,

Source§

fn write_body(self: Box<Self>, w: &mut W) -> Result<(), Error>

Implementors§