Module limited_reader

Source
Expand description

A wrapper around a reader that limits how many bytes can be read from it.

Structsยง

LimitedReader
Wraps a reader and limits the number of bytes that can be read from it. Once the limit has been reached, further calls to poll_read will return Ok(Ready(0)).