pub enum Vendor {
Show 26 variants
Unknown,
Upt,
Cargo,
Go,
Npm,
Uv,
Pkgx,
Apt,
Yay,
Yum,
Pacman,
Rua,
Apk,
Emerge,
Guix,
NixEnv,
Slackpkg,
Cards,
Dnf,
Eopkg,
Opkg,
Urpm,
Xbps,
Zypper,
Flatpak,
Snap,
}Variants§
Unknown
Upt
Cargo
Go
Npm
Uv
Pkgx
Apt
Yay
Yum
Pacman
Rua
Apk
Emerge
Guix
NixEnv
Slackpkg
Cards
Dnf
Eopkg
Opkg
Urpm
Xbps
Zypper
Flatpak
Snap
Implementations§
Source§impl Vendor
impl Vendor
pub fn new() -> Result<Self>
pub fn is_available(&self) -> Result<bool>
pub fn execute( self, pls_command: PlsCommand, args: Vec<String>, yes: bool, su: bool, dry_run: bool, pager: Option<String>, supplied_vendor: Option<Vendor>, ) -> Result<i32>
pub fn version_sep(&self) -> Cow<'static, str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vendor
impl<'de> Deserialize<'de> for Vendor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoEnumIterator for Vendor
impl IntoEnumIterator for Vendor
Source§impl Ord for Vendor
impl Ord for Vendor
Source§impl PartialOrd for Vendor
impl PartialOrd for Vendor
impl Copy for Vendor
impl Eq for Vendor
impl StructuralPartialEq for Vendor
Auto Trait Implementations§
impl Freeze for Vendor
impl RefUnwindSafe for Vendor
impl Send for Vendor
impl Sync for Vendor
impl Unpin for Vendor
impl UnwindSafe for Vendor
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more