Type Alias Pid

Source
pub type Pid = pid_t;
Expand description

A Pid is a “process id”. Each different platform has a different method for uniquely identifying a process. You can see what the Rust standard library uses for your platform by looking at std::process::id. On Linux a Pid is just a libc::pid_t.

Trait Implementations§

Source§

impl TryIntoProcessHandle for Pid

Source§

fn try_into_process_handle(&self) -> Result<ProcessHandle>

Attempt to turn a type into a ProcessHandle. Whilst Linux provides the same type for Pids and ProcessHandles, Windows and macOS do not. As such, you need to ensure that try_into_process_handle is called on all Pids to ensure cross-platform capabilities. Read more