Trait actix_web::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

Body size hint.

Attempt to pull out the next chunk of body bytes.

Implementations on Foreign Types

Implementors