Skip to main content

install_into

Function install_into 

Source
pub async fn install_into(
    paths: &DataPaths,
    spec: &'static DownloadSpec,
    cli_command: &str,
    on_line: &(dyn Fn(&'static str, &str) + Sync),
    cancel: &AtomicBool,
) -> Result<InstallOutcome, DownloadError>
Expand description

Download, verify, unpack and publish into the install dir. The caller holds the install lock and has cleared leftovers. A failure removes the partial dir, so nothing unmarked is left behind.