We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70569bd commit 5b9a290Copy full SHA for 5b9a290
tokio/src/io/async_read.rs
@@ -18,7 +18,8 @@ use std::task::{Context, Poll};
18
/// * `Poll::Ready(Ok(()))` means that data was immediately read and placed into
19
/// the output buffer. The amount of data read can be determined by the
20
/// increase in the length of the slice returned by `ReadBuf::filled`. If the
21
-/// difference is 0, EOF has been reached.
+/// difference is 0, either EOF has been reached, or the output buffer had zero
22
+/// capacity (i.e. `buf.remaining()` == 0).
23
///
24
/// * `Poll::Pending` means that no data was read into the buffer
25
/// provided. The I/O object is not currently readable but may become readable
0 commit comments