pub fn self_update(pin: Option<&str>) -> Result<SelfUpdateReport>Expand description
Update the running executable from the GitHub release feed.
pin installs an exact version (X.Y.Z, with or without a leading v)
instead of the latest release; pinning also allows downgrades. Returns
with updated: false when there is nothing to do. All failure modes
(network, missing artifact, checksum mismatch, unwritable install
location) return Err, which the CLI maps to exit code 2, and always
leave the installed binary untouched.