1.26.0[][src]Function async_std::process::id

pub fn id() -> u32
This is supported on unstable only.

Returns the OS-assigned process identifier associated with this process.

Examples

Basic usage:

use std::process;

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