pub enum InstallError {
MissingCrateNameArgument(&'static str),
CommandFailed(CommandFailed),
IoError(Error),
CargoInstallFailed,
CrateDoesNotExist {
crate_name: String,
},
NoFallback(CrateDetails),
}Variants§
MissingCrateNameArgument(&'static str)
CommandFailed(CommandFailed)
IoError(Error)
CargoInstallFailed
CrateDoesNotExist
NoFallback(CrateDetails)
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
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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.