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.
- copy_
bidirectional - Asynchronously copies data bidirectionally between two pairs of reader and writer.
- copy_
bidirectional_ with_ sizes - Asynchronously copies data bidirectionally between two pairs of reader and writer with specified buffer sizes.
- copy_
with_ size - Asynchronously copies the entire contents of a reader into a writer with specified buffer sizes.
- null
- Create a new
Nullreader and writer which acts like a black hole. - repeat
- Creates a reader that infinitely repeats one byte.