Skip to main content

copy_hashed

Function copy_hashed 

Source
pub async fn copy_hashed<'a, R, W>(
    reader: &'a mut R,
    writer: &'a mut W,
    algo: HashAlgo,
) -> Result<(u64, NixHash)>
where R: AsyncRead + Unpin + ?Sized, W: AsyncWrite + Unpin + ?Sized,
Available on crate feature async only.
Expand description

Asynchronously copies the entire contents of a reader into a writer while hashing.