pub enum InstallMethod {
Release,
Cargo,
Binstall {
crate_name: String,
source: BinstallSource,
},
PackageManager,
Store(StoreKind),
}Expand description
How the running executable came to be where it is, which decides whether update may
replace it.
Variants§
Release
Downloaded from a release and placed by hand: update replaces it.
Cargo
cargo install, under $CARGO_HOME/bin: cargo’s records would no longer match a
replaced file, so update says to run cargo install instead.
Binstall
cargo binstall, under $CARGO_HOME/bin and recorded in
$CARGO_HOME/binstall/crates-v1.json: update says to run cargo binstall again.
Fields
§
source: BinstallSourceWhere that crate came from.
PackageManager
A system or package-manager location (/usr/bin, the Nix store, Homebrew): the
package manager updates it.
Store(StoreKind)
A store’s own package (Flatpak, Snap, MSIX, Mac App Store): the store updates it, and replacing a file inside it would fail or be undone.
Trait Implementations§
Source§impl Clone for InstallMethod
impl Clone for InstallMethod
Source§impl Debug for InstallMethod
impl Debug for InstallMethod
impl Eq for InstallMethod
Source§impl PartialEq for InstallMethod
impl PartialEq for InstallMethod
impl StructuralPartialEq for InstallMethod
Auto Trait Implementations§
impl Freeze for InstallMethod
impl RefUnwindSafe for InstallMethod
impl Send for InstallMethod
impl Sync for InstallMethod
impl Unpin for InstallMethod
impl UnsafeUnpin for InstallMethod
impl UnwindSafe for InstallMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more