Module mz_ore::netio::read_exact
source · Available on crate feature
network
only.Structs§
- A future which reads exactly enough bytes to fill a buffer, unless EOF is reached first.
Functions§
- 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, usetokio::io::AsyncReadExt::read_exact
instead.