Skip to main content

co_copy

Function co_copy 

Source
pub async fn co_copy<'a, R, W>(
    reader: &'a mut R,
    writer: &'a mut W,
) -> Result<u64>
where R: AsyncRead + Unpin + ?Sized, W: AsyncWrite + Unpin + ?Sized,
Available on crate feature coroutine only.
Expand description

Copy an async reader to an async writer.

This is wrapper for tokio::io::copy with error context