copy_to_file

Function copy_to_file 

Source
pub async fn copy_to_file<R, F>(src: R, dst: &F) -> Result<usize>
where F: FileExt, R: AsyncRead + Unpin,
Expand description

Copy from src that implements AsyncRead to the detination file, returning how many bytes have been copied