Document vectored IO #2578
Labels
A-tokio
Area: The main tokio crate
C-maintenance
Category: PRs that clean code up or issues documenting cleanup.
M-io
Module: tokio/io
T-docs
Topic: documentation
The
AsyncWrite
trait currently supports vectored IO through the use ofpoll_write_buf
combined with a buffer with a useful implementation ofbytes_vectored
. Types such asTcpStream
already support it (see here).I guess we should also suggest or provide a buffer with a
Buf
impl, since theBytes
crate doesn't provide one. (BesidesChain
, but it has a staticly determined number of buffers.)The text was updated successfully, but these errors were encountered: