#[non_exhaustive]pub enum StepFailed {
NoPkexec,
Missing {
program: String,
},
NotStarted(String),
PromptRefused,
NoPolkitAgent,
SudoRefused,
NotServed(NotServed),
Homebrew(Trouble),
Exited {
program: String,
code: Option<i32>,
known: Option<Known>,
},
}Expand description
Why a step failed. A UI says each in its own words.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoPkexec
pkexec isn’t installed, so no password prompt can be shown (Debian ships it apart from polkit).
Missing
The step’s program isn’t installed.
NotStarted(String)
The program couldn’t be started for another reason: what the OS said.
PromptRefused
pkexec’s password prompt was dismissed, or the password refused: nothing was changed.
NoPolkitAgent
pkexec could show no password prompt: no polkit agent runs.
SudoRefused
sudo -n (an unattended root step) needed a password: nothing was changed.
NotServed(NotServed)
The step’s script stopped before changing anything: this system isn’t one it serves.
Homebrew(Trouble)
Homebrew itself is broken (a root-owned lock, too old for this macOS, an Xcode too old): the user’s to repair, which an install can’t mend.
Exited
The program ran and failed: its exit code, None when a signal ended it, and what its codes
say happened when that is known (winget’s, an installer’s run through PowerShell).
Trait Implementations§
Source§impl Clone for StepFailed
impl Clone for StepFailed
Source§impl Debug for StepFailed
impl Debug for StepFailed
Source§impl Display for StepFailed
impl Display for StepFailed
impl Eq for StepFailed
Source§impl Error for StepFailed
impl Error for StepFailed
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for StepFailed
impl PartialEq for StepFailed
impl StructuralPartialEq for StepFailed
Auto Trait Implementations§
impl Forget for StepFailed
impl Freeze for StepFailed
impl Move for StepFailed
impl RefUnwindSafe for StepFailed
impl Send for StepFailed
impl Sync for StepFailed
impl Unpin for StepFailed
impl UnsafeUnpin for StepFailed
impl UnwindSafe for StepFailed
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
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
key and return true if they are equal.