Provider

Enum Provider 

Source
pub enum Provider {
    Apt(Apt),
    Cargo(Cargo),
    Custom(Custom),
    Cwd(Cwd),
    Dnf(Dnf),
    Flatpak(Flatpak),
    Pacman(Pacman),
    Path(Path),
}
Expand description

Wrapper type for everything implementing IsProvider.

Variants§

§

Apt(Apt)

§

Cargo(Cargo)

§

Custom(Custom)

§

Cwd(Cwd)

§

Dnf(Dnf)

§

Flatpak(Flatpak)

§

Pacman(Pacman)

§

Path(Path)

Trait Implementations§

Source§

impl Debug for Provider

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Provider

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Apt> for Provider

Source§

fn from(v: Apt) -> Provider

Converts to this type from the input type.
Source§

impl From<Cargo> for Provider

Source§

fn from(v: Cargo) -> Provider

Converts to this type from the input type.
Source§

impl From<Custom> for Provider

Source§

fn from(v: Custom) -> Provider

Converts to this type from the input type.
Source§

impl From<Cwd> for Provider

Source§

fn from(v: Cwd) -> Provider

Converts to this type from the input type.
Source§

impl From<Dnf> for Provider

Source§

fn from(v: Dnf) -> Provider

Converts to this type from the input type.
Source§

impl From<Flatpak> for Provider

Source§

fn from(v: Flatpak) -> Provider

Converts to this type from the input type.
Source§

impl From<Pacman> for Provider

Source§

fn from(v: Pacman) -> Provider

Converts to this type from the input type.
Source§

impl From<Path> for Provider

Source§

fn from(v: Path) -> Provider

Converts to this type from the input type.
Source§

impl IsProvider for Provider

Source§

fn search_internal<'life0, 'life1, 'async_trait>( &'life0 self, __enum_dispatch_arg_0: &'life1 str, __enum_dispatch_arg_1: Arc<Environment>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Candidate>, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Search for a command with this provider in env.

Source§

impl PartialEq for Provider

Source§

fn eq(&self, other: &Provider) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryInto<Apt> for Provider

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Apt, <Self as TryInto<Apt>>::Error>

Performs the conversion.
Source§

impl TryInto<Cargo> for Provider

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Cargo, <Self as TryInto<Cargo>>::Error>

Performs the conversion.
Source§

impl TryInto<Custom> for Provider

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Custom, <Self as TryInto<Custom>>::Error>

Performs the conversion.
Source§

impl TryInto<Cwd> for Provider

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Cwd, <Self as TryInto<Cwd>>::Error>

Performs the conversion.
Source§

impl TryInto<Dnf> for Provider

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Dnf, <Self as TryInto<Dnf>>::Error>

Performs the conversion.
Source§

impl TryInto<Flatpak> for Provider

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Flatpak, <Self as TryInto<Flatpak>>::Error>

Performs the conversion.
Source§

impl TryInto<Pacman> for Provider

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Pacman, <Self as TryInto<Pacman>>::Error>

Performs the conversion.
Source§

impl TryInto<Path> for Provider

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Path, <Self as TryInto<Path>>::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for Provider

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more