pub enum CliToolError {
HelperMissing(PathBuf),
Conflict {
link: PathBuf,
what: String,
replaceable: bool,
},
Invalid(String),
Unsupported,
Os(String),
}Expand description
Why installing or removing the tool did not happen.
Variants§
HelperMissing(PathBuf)
The tool is not where the app expects it (a development build, a damaged copy).
Conflict
Something that isn’t this app’s tool is in the way; nothing was changed.
Invalid(String)
The name or a path can’t be used.
Unsupported
Not available on this platform.
Os(String)
The OS refused; one line, safe to show.
Implementations§
Source§impl CliToolError
impl CliToolError
pub fn is_conflict(&self) -> bool
Trait Implementations§
Source§impl Clone for CliToolError
impl Clone for CliToolError
Source§impl Debug for CliToolError
impl Debug for CliToolError
Source§impl Display for CliToolError
impl Display for CliToolError
impl Eq for CliToolError
Source§impl Error for CliToolError
impl Error for CliToolError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CliToolError> for CommandError
impl From<CliToolError> for CommandError
Source§fn from(e: CliToolError) -> Self
fn from(e: CliToolError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CliToolError
impl PartialEq for CliToolError
impl StructuralPartialEq for CliToolError
Auto Trait Implementations§
impl Freeze for CliToolError
impl RefUnwindSafe for CliToolError
impl Send for CliToolError
impl Sync for CliToolError
impl Unpin for CliToolError
impl UnsafeUnpin for CliToolError
impl UnwindSafe for CliToolError
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