Enum inject_lib::error::CustomError
source · [−]#[non_exhaustive]
pub enum CustomError {
NoViableInjector,
WaitForSingleObject(u32),
ModuleListLoop,
ZeroBytes,
LDRUninit,
InvalidStructure,
DllPathNoFile,
MempageInvalidProcess,
InvalidInput,
PermissionDenied,
}
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.
Trait Implementations
sourceimpl Clone for CustomError
impl Clone for CustomError
sourcefn clone(&self) -> CustomError
fn clone(&self) -> CustomError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CustomError
impl Debug for CustomError
sourceimpl Display for CustomError
impl Display for CustomError
sourceimpl From<CustomError> for Error
impl From<CustomError> for Error
sourcefn from(x: CustomError) -> Self
fn from(x: CustomError) -> Self
Converts to this type from the input type.
sourceimpl Hash for CustomError
impl Hash for CustomError
sourceimpl Ord for CustomError
impl Ord for CustomError
sourceimpl PartialEq<CustomError> for CustomError
impl PartialEq<CustomError> for CustomError
sourcefn eq(&self, other: &CustomError) -> bool
fn eq(&self, other: &CustomError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CustomError) -> bool
fn ne(&self, other: &CustomError) -> bool
This method tests for !=
.
sourceimpl PartialOrd<CustomError> for CustomError
impl PartialOrd<CustomError> for CustomError
sourcefn partial_cmp(&self, other: &CustomError) -> Option<Ordering>
fn partial_cmp(&self, other: &CustomError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for CustomError
impl Eq for CustomError
impl StructuralEq for CustomError
impl StructuralPartialEq for CustomError
Auto Trait Implementations
impl RefUnwindSafe for CustomError
impl Send for CustomError
impl Sync for CustomError
impl Unpin for CustomError
impl UnwindSafe for CustomError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more