Skip to main content

install_update

Function install_update 

Source
pub fn install_update(
    bin_name: &str,
    current_version: &str,
) -> Result<bool, UpdateError>
Expand description

Returns true if updated and false if already on the latest release.

ยงErrors

Returns an error when release metadata or the update archive cannot be downloaded, verified, or installed.