Function tokio_copy_with_buffer::copy_with_buffer [] [src]

pub fn copy_with_buffer<R, W>(
    reader: R,
    writer: W,
    buffer: Box<[u8]>
) -> Copy<R, W> where
    R: AsyncRead,
    W: AsyncWrite

Advanced version of [copy] where you can specify your own buffer. Buffer may be reused for multiple copy operations.

For other description text see the copy function documentation.