pub trait WriteBody<W> {
    fn write_body(&mut self, w: &mut W) -> Result<(), Error>;
    fn reset(&mut self) -> bool;
}
Expand description

A trait implemented by streaming bodies.

Required Methods§

Writes the body out, in its entirety.

Behavior is unspecified if this method is called twice without a successful call to reset in between.

Attempts to reset the body so that it can be written out again.

Returns true if successful. Behavior is unspecified if this is not called after a call to write_body.

Implementations on Foreign Types§

Implementors§