Enum feature_check::defs::Obtained
source · #[non_exhaustive]pub enum Obtained {
Failed(ObtainError),
NotSupported,
Features(HashMap<String, Version>),
}
Expand description
The result of querying a program for its supported features.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Failed(ObtainError)
The program could not be executed at all, or its output could not be parsed as a reasonable string.
NotSupported
The program does not support being queried for features.
Features(HashMap<String, Version>)
The program’s supported features were successfully parsed.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Obtained
impl Send for Obtained
impl Sync for Obtained
impl Unpin for Obtained
impl UnwindSafe for Obtained
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