Crate tokio_copy_with_buffer

Source
Expand description

Customized variant of [tokio_io::io::copy function] where you can set your own buffer and retrieve it after copying. This may increase performance in some cases. [tokio_io::io::copy function]: https://docs.rs/tokio-io/0.1/tokio_io/io/fn.copy.html

Structs§

Copy
A future which will copy all data from a reader into a writer.

Functions§

copy
Creates a future which represents copying all the bytes from one object to another, just like [the original copy] function. This version uses large buffer (65536) by default, unlike 4096 as in the original.
copy_with_buffer
Advanced version of copy where you can specify your own buffer. Buffer may be reused for multiple copy operations.