pub enum FailureKind {
MissingHome,
UnsupportedShell,
InvalidTargetPath,
DefaultPathUnavailable,
CompletionTargetUnavailable,
CompletionFileUnreadable,
ProfileUnavailable,
ProfileCorrupted,
}Expand description
Stable failure kinds for recoverable operational errors.
crate::Error::Failure wraps a FailureReport carrying one of these kinds so callers can
branch on failure categories without parsing human-readable text.
Variants§
MissingHome
HOME was not available and no fallback path could be derived.
UnsupportedShell
The requested shell is not implemented.
InvalidTargetPath
The requested target path was invalid.
This typically means a provided path_override did not include a usable parent directory.
The default managed install path could not be resolved.
The completion file or its directory could not be created or written.
CompletionFileUnreadable
The completion file existed but could not be read as expected.
The managed shell profile could not be written or removed.
ProfileCorrupted
The managed shell profile was present but malformed.
This usually means a previously managed block has a missing end marker or otherwise cannot be updated safely.
Implementations§
Source§impl FailureKind
impl FailureKind
Trait Implementations§
Source§impl Clone for FailureKind
impl Clone for FailureKind
Source§fn clone(&self) -> FailureKind
fn clone(&self) -> FailureKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more