mostly implement getting a running process

This commit is contained in:
2024-12-30 15:45:15 +00:00
parent 42d7b7d55e
commit a6a883c26e
9 changed files with 191 additions and 7 deletions
+13
View File
@@ -0,0 +1,13 @@
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("couldn't get handle to process")]
HandleError(String),
#[error("couldn't create instance of process")]
ProcessError(String),
#[error("couldn't create snapshot")]
SnapshotError(String),
#[error("failed to convert integer")]
IntegerConversionError(#[from] std::num::TryFromIntError),
}