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
type Data: AsRef<[u8]> + 'static
A single chunk of the message body.
type Error
The error which will be returned from poll_data
.