Please provide a read_buf_exact
helper
#7127
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-io
Module: tokio/io
read_buf
allows reading into anyBufMut
, such as an uninitialized buffer; however, it requires dealing with partial reads.read_exact
avoids having to deal with partial reads, but it only accepts an initialized buffer.Please consider adding a
read_buf_exact
that accepts anyBufMut
and avoids having to deal with partial reads.The text was updated successfully, but these errors were encountered: