Enum rustc_version::Error
source · pub enum Error {
CouldNotExecuteCommand(Error),
Utf8Error(Utf8Error),
UnexpectedVersionFormat,
ReqParseError(ReqParseError),
SemVerError(SemVerError),
UnknownPreReleaseTag(Identifier),
}
Expand description
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§
source§impl Error for Error
impl Error for Error
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ReqParseError> for Error
impl From<ReqParseError> for Error
source§fn from(e: ReqParseError) -> Error
fn from(e: ReqParseError) -> Error
Converts to this type from the input type.
source§impl From<SemVerError> for Error
impl From<SemVerError> for Error
source§fn from(e: SemVerError) -> Error
fn from(e: SemVerError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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