Function copy_buffer

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

Copy data from reader to writer with buffer.