#[non_exhaustive]pub enum Known {
Cancelled,
AnotherInstall,
NoDiskSpace,
NoInternet,
RestartFirst,
Policy,
AgreementToAccept,
InstallerError,
}Expand description
What a failed Windows step’s codes say happened.
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.
Cancelled
Its user said no: to the UAC prompt, or to the installer.
AnotherInstall
Another installation is already running.
NoDiskSpace
There isn’t enough disk space.
NoInternet
It needs an internet connection.
RestartFirst
Windows must restart first: nothing was installed.
Policy
A policy on this computer blocks it.
AgreementToAccept
winget asks its user to accept the package’s agreement, or its source’s, which nothing
accepts for them: they run the same winget install themselves, read it and accept it
there, then check again. Nothing was installed.
InstallerError
The installer reported an error: the details are in its output.
Trait Implementations§
impl Copy for Known
impl Eq for Known
impl StructuralPartialEq for Known
Auto Trait Implementations§
impl Forget for Known
impl Freeze for Known
impl Move for Known
impl RefUnwindSafe for Known
impl Send for Known
impl Sync for Known
impl Unpin for Known
impl UnsafeUnpin for Known
impl UnwindSafe for Known
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> 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.