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
impl TryIntoProcessHandle for Pid
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