implement process modules

This commit is contained in:
2024-12-30 16:52:02 +00:00
parent 45ecf9bed6
commit ff7674615d
4 changed files with 87 additions and 11 deletions
+3 -3
View File
@@ -2,11 +2,11 @@ use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("couldn't get handle to process")]
#[error("failed to obtain handle")]
HandleError(String),
#[error("couldn't create instance of process")]
#[error("failed to create instance")]
ProcessError(String),
#[error("couldn't create snapshot")]
#[error("failed to create snapshot")]
SnapshotError(String),
#[error("failed to convert integer")]
IntegerConversionError(#[from] std::num::TryFromIntError),