pub enum InstallError {
MissingCrateNameArgument(&'static str),
CommandFailed(CommandFailed),
IoError(Error),
CargoInstallFailed,
CrateDoesNotExist {
crate_name: String,
},
NoFallback(CrateDetails),
InvalidJson {
url: String,
err: JsonParseError,
},
JsonErr(JsonExtError),
FailToParseRustcOutput {
reason: &'static str,
},
}Variants§
MissingCrateNameArgument(&'static str)
CommandFailed(CommandFailed)
IoError(Error)
CargoInstallFailed
CrateDoesNotExist
NoFallback(CrateDetails)
InvalidJson
JsonErr(JsonExtError)
FailToParseRustcOutput
Implementations§
Source§impl InstallError
impl InstallError
pub fn is_curl_404(&self) -> bool
Trait Implementations§
Source§impl Debug for InstallError
impl Debug for InstallError
Source§impl Display for InstallError
impl Display for InstallError
Source§impl Error for InstallError
impl Error for InstallError
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<CommandFailed> for InstallError
impl From<CommandFailed> for InstallError
Source§fn from(err: CommandFailed) -> InstallError
fn from(err: CommandFailed) -> InstallError
Converts to this type from the input type.
Source§impl From<Error> for InstallError
impl From<Error> for InstallError
Source§fn from(err: Error) -> InstallError
fn from(err: Error) -> InstallError
Converts to this type from the input type.
Source§impl From<JsonExtError> for InstallError
impl From<JsonExtError> for InstallError
Source§fn from(err: JsonExtError) -> InstallError
fn from(err: JsonExtError) -> InstallError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstallError
impl !RefUnwindSafe for InstallError
impl Send for InstallError
impl Sync for InstallError
impl Unpin for InstallError
impl !UnwindSafe for InstallError
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