#[non_exhaustive]pub enum CustomError {
NoViableInjector,
WaitForSingleObject(u32),
ModuleListLoop,
ZeroBytes,
LDRUninit,
InvalidStructure,
DllPathNoFile,
MempageInvalidProcess,
InvalidInput,
PermissionDenied,
LibraryNotFound(String),
}
Expand description
This Represents Error Codes generated by this Crate
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoViableInjector
This is thrown, if all available injectors cannot be used in a certain situation. This should only happen, if the feature x86tox64 is disabled, but the library is compiled into a x86 binary, which tries injecting into a x64 process.
WaitForSingleObject(u32)
Special Return codes returned only by WaitForSingleObject
ModuleListLoop
This occurs, if some predicate is supplied, that doesn’t select an element in a module list
ZeroBytes
If for some reason a function call returns zero bytes, but succeeded, this error will get used
LDRUninit
If the LDR is unpopulated during a get_module_in_proc call
InvalidStructure
This errror Indicates, that there is possibly a problem with a structure in this crate
DllPathNoFile
Dll file path name does not end in a file
MempageInvalidProcess
The Memory Page was not allocated in the expected process.
InvalidInput
The input parameters were invalid.
PermissionDenied
The requested operation would have resulted in a Permission error.
LibraryNotFound(String)
This occures when it was expexted, that a Library is Loaded, but not found.
Trait Implementations§
Source§impl Clone for CustomError
impl Clone for CustomError
Source§fn clone(&self) -> CustomError
fn clone(&self) -> CustomError
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more