pub async fn copy_buffer<R, W>(
    reader: &mut R,
    writer: &mut W,
    buffer: &mut [u8]
) -> Result<usize>where
    R: AsyncReadExt + Unpin,
    W: AsyncWriteExt + Unpin,
Expand description

Copy data from reader to writer.