Enum rustc_version::Error [−][src]
pub enum Error { CouldNotExecuteCommand(Error), Utf8Error(Utf8Error), UnexpectedVersionFormat, ReqParseError(ReqParseError), SemVerError(SemVerError), UnknownPreReleaseTag(Identifier), }
The error type for this crate.
Variants
CouldNotExecuteCommand(Error)
An error ocurrend when executing the rustc
command.
Utf8Error(Utf8Error)
The output of rustc -vV
was not valid utf-8.
UnexpectedVersionFormat
The output of rustc -vV
was not in the expected format.
ReqParseError(ReqParseError)
An error ocurred in parsing a VersionReq
.
SemVerError(SemVerError)
An error ocurred in parsing the semver.
UnknownPreReleaseTag(Identifier)
The pre-release tag is unknown.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
impl From<Utf8Error> for Error
[src]
impl From<Utf8Error> for Error
impl From<SemVerError> for Error
[src]
impl From<SemVerError> for Error
fn from(e: SemVerError) -> Error
[src]
fn from(e: SemVerError) -> Error
Performs the conversion.
impl From<ReqParseError> for Error
[src]
impl From<ReqParseError> for Error
fn from(e: ReqParseError) -> Error
[src]
fn from(e: ReqParseError) -> Error
Performs the conversion.