Function nix::unistd::setresuid [] [src]

pub fn setresuid(ruid: uid_t, euid: uid_t, suid: uid_t) -> Result<()>

Sets the real, effective, and saved uid. (see setresuid(2))

Err is returned if the user doesn't have permission to set this UID.