Type Definition process_memory::Pid
source · [−]pub type Pid = pid_t;
Expand description
On OS X a Pid
is just a libc::pid_t
.
Trait Implementations
sourceimpl TryIntoProcessHandle for Pid
impl TryIntoProcessHandle for Pid
Pid
can be turned into a ProcessHandle
with task_for_pid
.
sourcefn 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