Skip to main content

copy

Function copy 

Source
pub fn copy<R, W>(reader: &mut R, writer: &mut W) -> Result<u64>
where R: Read + ?Sized, W: Write + ?Sized,
Expand description

Copy a reader to a writer.

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