Module tokio_util::io[][src]

This is supported on crate feature io only.
Expand description

Helpers for IO related tasks.

These types are often used in combination with hyper or reqwest, as they allow converting between a hyper Body and AsyncRead.

Structs

ReaderStream

Convert an AsyncRead into a Stream of byte chunks.

StreamReader

Convert a Stream of byte chunks into an AsyncRead.

Functions

poll_read_buf

Try to read data from an AsyncRead into an implementer of the BufMut trait.

poll_write_buf

Try to write data from an implementer of the Buf trait to an AsyncWrite, advancing the buffer’s internal cursor.

read_buf

Read data from an AsyncRead into an implementer of the BufMut trait.