pub struct Winget;Expand description
Package manager implementation for Windows (winget).
Trait Implementations§
Source§impl PackageManager for Winget
impl PackageManager for Winget
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Returns
true when the manager’s binary is on PATH.Source§fn exists(&self, runner: &dyn Runner, pkg: &str) -> Result<bool, PackageError>
fn exists(&self, runner: &dyn Runner, pkg: &str) -> Result<bool, PackageError>
Returns
true when pkg can be installed from the manager’s
configured sources (repositories, taps, buckets, registry), whether
or not it is installed. Used by krypt deps --check.Source§fn is_installed(
&self,
runner: &dyn Runner,
pkg: &str,
) -> Result<bool, PackageError>
fn is_installed( &self, runner: &dyn Runner, pkg: &str, ) -> Result<bool, PackageError>
Auto Trait Implementations§
impl Freeze for Winget
impl RefUnwindSafe for Winget
impl Send for Winget
impl Sync for Winget
impl Unpin for Winget
impl UnsafeUnpin for Winget
impl UnwindSafe for Winget
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