Module read_exact

Source
Available on crate feature network only.

Structs§

ReadExactOrEof
A future which reads exactly enough bytes to fill a buffer, unless EOF is reached first.

Functions§

read_exact_or_eof
Creates a future which will read exactly enough bytes to fill buf, unless EOF is reached first. If a short read should be considered an error, use tokio::io::AsyncReadExt::read_exact instead.