Trait finchers_runtime::service::Payload [] [src]

pub trait Payload {
    type Data: AsRef<[u8]> + 'static;
    type Error;
    fn poll_data(&mut self) -> Poll<Option<Self::Data>, Self::Error>;
}

Trait representing the streaming body of HTTP response.

Associated Types

A single chunk of the message body.

The error which will be returned from poll_data.

Required Methods

Poll a Data from this stream.

Implementations on Foreign Types

impl Payload for ResponseBody
[src]

[src]

Implementors