Function std::process::id1.26.0[][src]

pub fn id() -> u32
Expand description

返回与此进程关联的操作系统分配的进程标识符。

Examples

基本用法:

use std::process;

println!("My pid is {}", process::id());
Run