Skip to main content

Module util

Module util 

Source
Available on crate feature io only.
Expand description

IO related utilities functions for ease of use.

Modules§

split
Functionality to split an I/O type into separate read and write halves.

Structs§

Null
An empty reader and writer constructed via null.
Repeat
A reader that infinitely repeats one byte constructed via repeat.
Take
Read up to a limit number of bytes from reader.

Traits§

Splittable
A trait for types that can be split into separate read and write halves.

Functions§

copy
Asynchronously copies the entire contents of a reader into a writer.
null
Create a new Null reader and writer which acts like a black hole.
repeat
Creates a reader that infinitely repeats one byte.