pub struct Apt;Expand description
Package manager implementation for Debian-family systems.
Trait Implementations§
Source§impl PackageManager for Apt
impl PackageManager for Apt
Source§fn exists(&self, runner: &dyn Runner, pkg: &str) -> Result<bool, PackageError>
fn exists(&self, runner: &dyn Runner, pkg: &str) -> Result<bool, PackageError>
A simulated apt-get install, so a virtual package counts only when
apt can pick a provider for it. Needs no root, but does need the
package lists (apt-get update).
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Returns
true when the manager’s binary is on PATH.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 Apt
impl RefUnwindSafe for Apt
impl Send for Apt
impl Sync for Apt
impl Unpin for Apt
impl UnsafeUnpin for Apt
impl UnwindSafe for Apt
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