Trait std::os::unix::prelude::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
`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
`setuidcall in the child process. Failure in the
` call in the child process. Failure in the setuid
`setuid`
call will cause the spawn to fail.
fn gid(&mut self, id: gid_t) -> &mut Command
Similar to uid
`uid, but sets the group id of the child process. This has the same semantics as the
`, but sets the group id of the child process. This has
the same semantics as the uid
`uid` field.
Implementors
impl CommandExt for Command
impl CommandExt for Command