pub enum PathResolution {
Managed,
NotOnPath,
SameBuild {
runs: PathBuf,
managed: PathBuf,
},
Shadowed {
runs: PathBuf,
runs_version: String,
managed: PathBuf,
managed_version: String,
},
}Expand description
What a shell actually runs for one managed program (aegis-70qlhs).
Versions are read from the MANAGED copy ($CARGO_HOME/bin), so a stale
binary earlier on PATH can make verify report a tool current while the
user runs something else. That happened: a fresh cargo install exited 0,
the new binary sat on disk, and an older copy in ~/.local/bin kept
answering. Nothing said which copy ran.
Variants§
Managed
PATH runs the managed copy, or there is no managed copy to compare.
NotOnPath
The program is not on PATH at all.
SameBuild
PATH runs a different file that reports the same --version.
Shadowed
PATH runs a different file that reports a different --version.
Trait Implementations§
Source§impl Debug for PathResolution
impl Debug for PathResolution
impl Eq for PathResolution
Source§impl PartialEq for PathResolution
impl PartialEq for PathResolution
impl StructuralPartialEq for PathResolution
Auto Trait Implementations§
impl Forget for PathResolution
impl Freeze for PathResolution
impl Move for PathResolution
impl RefUnwindSafe for PathResolution
impl Send for PathResolution
impl Sync for PathResolution
impl Unpin for PathResolution
impl UnsafeUnpin for PathResolution
impl UnwindSafe for PathResolution
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
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.