pub enum FileVersionError {
VersionInfoSize {
filename: String,
},
VersionInfoRetrieval {
filename: String,
err: Error,
},
VersionQuery {
filename: String,
},
}
Expand description
Error types for file version retrieval.
Variants§
VersionInfoSize
Failed to get file version info size for ‘{filename}’
VersionInfoRetrieval
Failed to retrieve file version info for ‘{filename}’, err: {err}
VersionQuery
Failed to query product version for ‘{filename}’. (NOTE: If the target exe, dll exists, this error is probably due to the fact that it is not US English.)
Trait Implementations§
Source§impl Clone for FileVersionError
impl Clone for FileVersionError
Source§fn clone(&self) -> FileVersionError
fn clone(&self) -> FileVersionError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileVersionError
impl Debug for FileVersionError
Source§impl Display for FileVersionError
impl Display for FileVersionError
Source§impl Error for FileVersionError
impl Error for FileVersionError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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§impl ErrorCompat for FileVersionError
impl ErrorCompat for FileVersionError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl Ord for FileVersionError
impl Ord for FileVersionError
Source§fn cmp(&self, other: &FileVersionError) -> Ordering
fn cmp(&self, other: &FileVersionError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FileVersionError
impl PartialEq for FileVersionError
Source§impl PartialOrd for FileVersionError
impl PartialOrd for FileVersionError
impl Eq for FileVersionError
impl StructuralPartialEq for FileVersionError
Auto Trait Implementations§
impl Freeze for FileVersionError
impl RefUnwindSafe for FileVersionError
impl Send for FileVersionError
impl Sync for FileVersionError
impl Unpin for FileVersionError
impl UnwindSafe for FileVersionError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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