Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§