We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AsyncRead::poll_read
1 parent 4590828 commit c6aceedCopy full SHA for c6aceed
tokio/src/io/async_read.rs
@@ -46,7 +46,8 @@ pub trait AsyncRead {
46
///
47
/// On success, returns `Poll::Ready(Ok(()))` and places data in the
48
/// unfilled portion of `buf`. If no data was read (`buf.filled().len()` is
49
- /// unchanged), it implies that EOF has been reached.
+ /// unchanged), it implies that EOF has been reached, or the output buffer
50
+ /// had zero capacity (i.e. `buf.remaining()` == 0).
51
52
/// If no data is available for reading, the method returns `Poll::Pending`
53
/// and arranges for the current task (via `cx.waker()`) to receive a
0 commit comments