Crate tokio_copy_with_buffer [] [src]

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.

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.