Skip to main content

is_root

Function is_root 

Source
pub fn is_root() -> bool
Expand description

Check if the current process is running with elevated privileges. Unix: checks euid == 0. Windows: checks IsUserAnAdmin().