[][src]Trait iron::response::WriteBody

pub trait WriteBody: Send {
    fn write_body(&mut self, res: &mut dyn Write) -> Result<()>;
}

A trait which writes the body of an HTTP response.

Required methods

fn write_body(&mut self, res: &mut dyn Write) -> Result<()>

Writes the body to the provided Write.

Loading content...

Implementations on Foreign Types

impl WriteBody for String[src]

impl<'a> WriteBody for &'a str[src]

impl WriteBody for Vec<u8>[src]

impl<'a> WriteBody for &'a [u8][src]

impl WriteBody for File[src]

impl WriteBody for Box<dyn Read + Send>[src]

Loading content...

Implementors

impl<R: Read + Send> WriteBody for BodyReader<R>[src]

Loading content...