pub fn download_installer<FStart, FProgress>(
client: &Client,
installer: &CatalogInstaller,
download_path: &Path,
ignore_checksum_security: bool,
on_start: FStart,
on_progress: FProgress,
) -> Result<Vec<HashAlgorithm>>Expand description
Download an installer into a temporary file and verify it before finalizing.
The payload is streamed to a .part file next to download_path, with
progress forwarded through the provided callbacks. If the installer hash is
present, it is verified as the bytes arrive. On success, the temporary file
is atomically finalized into download_path and the set of tolerated legacy
checksum algorithms is returned to the caller.
When any step fails, the temporary file is removed so the install flow does not leave behind partially downloaded payloads.