pub enum ModuleHandleError {
NullHandle,
HandleNotFound {
source: Error,
},
InvalidDosHeaderSignature {
actual: u16,
},
InvalidNtHeader64Signature {
actual: u32,
},
}
Expand description
Error types for module handle operations.
Variants§
NullHandle
Invalid module handle.
HandleNotFound
Failed to get module handle for ‘{source}’
InvalidDosHeaderSignature
Invalid dos header of this exe/dll. Expected 0x5a4d
, but got {actual}
InvalidNtHeader64Signature
Invalid NT header64. Expected PE\0\0
(0x4550), but got {actual:X}
Trait Implementations§
Source§impl Clone for ModuleHandleError
impl Clone for ModuleHandleError
Source§fn clone(&self) -> ModuleHandleError
fn clone(&self) -> ModuleHandleError
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 ModuleHandleError
impl Debug for ModuleHandleError
Source§impl Display for ModuleHandleError
impl Display for ModuleHandleError
Source§impl Error for ModuleHandleError
impl Error for ModuleHandleError
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 ModuleHandleError
impl ErrorCompat for ModuleHandleError
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 PartialEq for ModuleHandleError
impl PartialEq for ModuleHandleError
impl Eq for ModuleHandleError
impl StructuralPartialEq for ModuleHandleError
Auto Trait Implementations§
impl Freeze for ModuleHandleError
impl RefUnwindSafe for ModuleHandleError
impl Send for ModuleHandleError
impl Sync for ModuleHandleError
impl Unpin for ModuleHandleError
impl UnwindSafe for ModuleHandleError
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