proc_mem_rs/
errors.rs

1#[derive(Debug)]
2pub enum ProcMemError {
3    /// Could not take a snapshot of the processes/modules
4    CreateSnapshotFailure,
5    /// Could not iterate over the snapshot entries
6    IterateSnapshotFailure,
7    /// Process was not found in the snapshot of the processes
8    ProcessNotFound,
9    /// Module was not found in the snapshot of the modules
10    ModuleNotFound,
11    /// Could not get a HANDLE to read/write the process memory
12    GetHandleError,
13    /// Could not terminate the process
14    TerminateProcessError,
15    /// Could not read the process memory
16    ReadMemoryError,
17    /// Could not write to the process memory
18    WriteMemoryError,
19    /// Could not find the provided signature in the module
20    SignatureNotFound,
21    /// Signature pattern has lead out of bounds
22    AddressOutOfBounds,
23    /// Could not read the found address and add it to the result
24    RIPRelativeFailed,
25}