[−][src]Function libp2prs_traits::copy
pub async fn copy<R, W>(__arg0: R, __arg1: W) -> Result<usize> where
R: ReadEx + Unpin,
W: WriteEx + Unpin,
Copies the entire contents of a reader into a writer.
This function will read data from reader
and write it into writer
in a streaming fashion
until reader
returns EOF.
On success, returns the total number of bytes copied.