bare minimum documentation

This commit is contained in:
2024-12-31 09:21:58 +00:00
parent 84ada5576f
commit 2138464fec
5 changed files with 40 additions and 0 deletions
+6
View File
@@ -1,15 +1,21 @@
use thiserror::Error;
#[derive(Debug, Error)]
/// errors that can occur during interaction with a process
pub enum Error {
/// there was a failure in obtaining the handle to a process
#[error("failed to obtain handle")]
ObtainHandleError(String),
/// there was a failure when reading or writing the process's memory
#[error("failed to access process memory")]
AccessMemoryError(String),
/// there was a failure in building the Process or Module struct
#[error("failed to create process")]
CreateProcessError(String),
/// there was a failure in creating a snapshot of processes or modules
#[error("failed to create snapshot")]
CreateSnapshotError(String),
/// there was a failure in conversion between integers
#[error("failed to convert integer")]
ConvertIntegerError(#[from] std::num::TryFromIntError),
}