Trait actix_http::body::MessageBody [−][src]
pub trait MessageBody { type Error; fn size(&self) -> BodySize; fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Bytes, Self::Error>>>; }
Expand description
An interface for response bodies.
Associated Types
Required methods
Implementations on Foreign Types
Implementors
impl<S, E> MessageBody for BodyStream<S> where
S: Stream<Item = Result<Bytes, E>>,
E: Into<Box<dyn StdError>> + 'static,
impl<S, E> MessageBody for SizedStream<S> where
S: Stream<Item = Result<Bytes, E>>,
E: Into<Box<dyn StdError>> + 'static,