[][src]Module nyx::read

Adapter functions for readers.

The functions returns a new reader that extends the read and read_vectored implementations to be able to report their throughput every second. If any other methods on the reader has been specialized to not use one of the above methods, this reader will not report anything.

Structs

Reader

A reader that extends the read and read_vectored implementations to report their throughput every second.

Functions

call

Creates a reader that yields the bytes by calling the provided function.

send

Creates a reader that yields the bytes by sending it through the provided Sender.

stderr

Creates a reader that yields the bytes by printing it to stderr.

stdout

Creates a reader that yields the bytes by printing it to stdout.