Trait std::os::unix::process::CommandExt [] [src]

pub trait CommandExt {
    fn uid(&mut self, id: uid_t) -> &mut Command;
    fn gid(&mut self, id: gid_t) -> &mut Command;
}

Unix-specific extensions to the std::process::Command builder

Required Methods

fn uid(&mut self, id: uid_t) -> &mut Command

Sets the child process's user id. This translates to a setuid call in the child process. Failure in the setuid call will cause the spawn to fail.

fn gid(&mut self, id: gid_t) -> &mut Command

Similar to uid, but sets the group id of the child process. This has the same semantics as the uid field.

Implementors