pub enum Manager {
Mise,
Cargo,
Npm,
Pip,
}Expand description
A package manager that owns an installed isb.
Variants§
Implementations§
Source§impl Manager
impl Manager
Sourcepub fn detect(exe: &Path) -> Option<Manager>
pub fn detect(exe: &Path) -> Option<Manager>
Which manager installed the binary at exe, judged by its path.
pub fn name(self) -> &'static str
Sourcepub fn upgrade_command(self) -> &'static str
pub fn upgrade_command(self) -> &'static str
The command that upgrades isb through this manager. For mise, the
installer: mise installs are deprecated (see Manager::deprecation).
Sourcepub fn deprecation(self) -> Option<String>
pub fn deprecation(self) -> Option<String>
Why an install by this manager should move to the installer, and how, if it should.
Trait Implementations§
impl Copy for Manager
impl Eq for Manager
impl StructuralPartialEq for Manager
Auto Trait Implementations§
impl Freeze for Manager
impl RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl UnsafeUnpin for Manager
impl UnwindSafe for Manager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.