Skip to main content

identity

Function identity 

Source
pub fn identity(pid: u32) -> Option<ProcessIdentity>
Expand description

Returns a PID-reuse-safe identity when the operating system exposes one.

Callers must treat None as “not proven alive” for security-sensitive ownership checks. The supported desktop targets use an immutable process creation marker plus executable path; unsupported targets deliberately fail closed rather than trusting a bare PID.