pub async fn decompress_with_extract_fn_and_password<R: AsyncRead + AsyncSeek + Unpin + Send>(
src_reader: R,
dest: impl AsRef<Path>,
password: Password,
extract_fn: impl for<'a> FnMut(&'a ArchiveEntry, &'a mut (dyn AsyncRead + Unpin + Send + 'a), &'a Path) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'a>> + 'static + Send,
) -> Result<(), Error>Available on crate feature
aes256 and non-WebAssembly only.Expand description
Decompresses an encrypted archive from a reader with a custom extraction function and password.
This provides maximum flexibility for encrypted archives, allowing custom input sources, custom extraction logic, and password decryption.
ยงArguments
src_reader- Reader containing the encrypted archive datadest- Path to the destination directory where files will be extractedpassword- Password to decrypt the archiveextract_fn- Custom function to handle each archive entry during extraction