pub enum VersionInformationError {
ParseErrorMajor(String),
ParseErrorMinor(String),
ParseErrorBuild(String),
ConversionErrorMajor {
version_string: String,
source: ParseIntError,
},
ConversionErrorMinor {
version_string: String,
source: ParseIntError,
},
ConversionErrorBuild {
version_string: String,
source: ParseIntError,
},
CurrentExecutablePathRetrievalFailure {
source: Error,
},
ExecutableFileReadFailure {
source: Error,
},
}Expand description
Contains error definition for version information retrieval
Variants§
ParseErrorMajor(String)
Major number could not be parsed from version string
ParseErrorMinor(String)
Minor number could not be parsed from version string
ParseErrorBuild(String)
Build number could not be parsed from version string
ConversionErrorMajor
Major number could not be converted to numeric value
ConversionErrorMinor
Minor number could not be converted to numeric value
ConversionErrorBuild
Build number could not be converted to numeric value
CurrentExecutablePathRetrievalFailure
ExecutableFileReadFailure
Trait Implementations§
Source§impl Debug for VersionInformationError
impl Debug for VersionInformationError
Source§impl Display for VersionInformationError
impl Display for VersionInformationError
Source§impl Error for VersionInformationError
impl Error for VersionInformationError
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()
Auto Trait Implementations§
impl Freeze for VersionInformationError
impl !RefUnwindSafe for VersionInformationError
impl Send for VersionInformationError
impl Sync for VersionInformationError
impl Unpin for VersionInformationError
impl !UnwindSafe for VersionInformationError
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