From 0a738e65888176823fdfc160eec7d80b824f42fb Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Thu, 22 Apr 2021 12:02:29 +0200 Subject: [PATCH] Document RecvStream::poll_data I need it in another polling function. --- src/share.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share.rs b/src/share.rs index 108e4a6..eb071dc 100644 --- a/src/share.rs +++ b/src/share.rs @@ -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>> { self.inner.inner.poll_data(cx).map_err_(Into::into) }