copy

Function copy 

Source
pub async fn copy<R, W>(r: R, w: W) -> Result<()>
where R: AsyncBufRead + Send + Unpin, W: AsyncWrite + Send + Unpin,
Available on crate features async and wire only.
Expand description

Reads through the entire NAR, and writes it back to a writer. This verifies its syntactical correctness.