pub type ProcessHandle = (Pid, Architecture);
Expand description
A ProcessHandle
is a variable type that allows for access to functions that can manipulate
other processes. On platforms other than Linux, this is typically a different type than
Pid
, and thus it is a distinct type here.
On Linux a ProcessHandle
is just a libc::pid_t
.
Trait Implementations§
Source§impl CopyAddress for ProcessHandle
impl CopyAddress for ProcessHandle
Source§fn get_pointer_width(&self) -> Architecture
fn get_pointer_width(&self) -> Architecture
Get the the pointer width of the underlying process.
This is required for
get_offset
to work. Read moreSource§impl ProcessHandleExt for ProcessHandle
impl ProcessHandleExt for ProcessHandle
Source§fn check_handle(&self) -> bool
fn check_handle(&self) -> bool
Source§fn null_type() -> Self
fn null_type() -> Self
Return the null equivalent of a
ProcessHandle
.Source§fn set_arch(self, arch: Architecture) -> Self
fn set_arch(self, arch: Architecture) -> Self
Set this handle to use some architecture
Source§impl PutAddress for ProcessHandle
impl PutAddress for ProcessHandle
Source§impl TryIntoProcessHandle for ProcessHandle
impl TryIntoProcessHandle for ProcessHandle
Source§fn try_into_process_handle(&self) -> Result<ProcessHandle>
fn try_into_process_handle(&self) -> Result<ProcessHandle>
Attempt to turn a type into a
ProcessHandle
. Whilst Linux provides the same type for
Pid
s and ProcessHandle
s, Windows and macOS do not. As such, you need to ensure that
try_into_process_handle
is called on all Pid
s to ensure cross-platform capabilities. Read more