Skip to main content

parent_id

Function parent_id 

1.27.0 · Source
pub fn parent_id() -> u32
Available on non-Hermit and (Unix) and not ((WebAssembly and non-WASI, or Fortanix and SGX)) only.
Expand description

Returns the OS-assigned process identifier associated with this process’s parent.