pub enum DependencyCheck {
Binary {
name: &'static str,
alternatives: &'static [&'static str],
version_cmd: Option<(&'static str, &'static [&'static str])>,
},
PythonImport {
module: &'static str,
},
Command {
program: &'static str,
args: &'static [&'static str],
},
}Expand description
How to verify a dependency is installed.
Variants§
Binary
Check that a binary exists on PATH (optionally with minimum version).
Fields
PythonImport
Check that a Python module can be imported.
Command
Run an arbitrary command; exit code 0 means installed.
Auto Trait Implementations§
impl Freeze for DependencyCheck
impl RefUnwindSafe for DependencyCheck
impl Send for DependencyCheck
impl Sync for DependencyCheck
impl Unpin for DependencyCheck
impl UnsafeUnpin for DependencyCheck
impl UnwindSafe for DependencyCheck
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> 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