Function quork::root::is_root

source ·
pub fn is_root() -> Result<bool, Error>
Expand description

Checks if the process has root privileges

§Errors

  • On Windows, may return an error if the process elevation cannot be checked
  • On Unix-like, no errors will ever be returned