Skip to main content

self_update

Function self_update 

Source
pub async fn self_update(check_only: bool) -> Result<()>
Expand description

Check for a newer version and – unless check_only is true – download and atomically replace the running binary.

§Errors

Returns an error if the feed cannot be fetched or parsed, the download fails, or the binary cannot be replaced (e.g. insufficient permissions).