[][src]Trait conjure_http::client::WriteBody

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

A trait implemented by streaming bodies.

Required methods

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

Writes the body out, in its entirety.

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

fn reset(&mut self) -> bool

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.

Loading content...

Implementations on Foreign Types

impl<'_, W> WriteBody<W> for &'_ [u8] where
    W: Write
[src]

Loading content...

Implementors

Loading content...