Document RecvStream::poll_data

I need it in another polling function.
This commit is contained in:
Anthony Ramine
2021-04-22 12:02:29 +02:00
committed by Sean McArthur
parent 869e7162c4
commit 0a738e6588

View File

@@ -401,7 +401,7 @@ impl RecvStream {
futures_util::future::poll_fn(move |cx| self.poll_trailers(cx)).await
}
#[doc(hidden)]
/// Poll for the next data frame.
pub fn poll_data(&mut self, cx: &mut Context<'_>) -> Poll<Option<Result<Bytes, crate::Error>>> {
self.inner.inner.poll_data(cx).map_err_(Into::into)
}