pub fn copy_len<R, W>(
    read: R,
    write: W,
    len: u64
) -> Result<u64, CopyError<R::Error, W::Error>> where
    R: Read,
    W: Write