This is supported on crate feature network only.
Expand description

Network I/O utilities.

Structs

An error indicating that a frame in a framed stream exceeded MAX_FRAME_SIZE.

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

Constants

The maximum allowable size of a frame in a framed stream.

Traits

Asynchronous IO readiness.

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, use tokio::io::AsyncReadExt::read_exact instead.