Struct std::sys::unix::process::process_common::Command[][src]

pub struct Command {
Show 14 fields program: CString, args: Vec<CString>, argv: Argv, env: CommandEnv, cwd: Option<CString>, uid: Option<uid_t>, gid: Option<gid_t>, saw_nul: bool, closures: Vec<Box<dyn FnMut() -> Result<()> + Send + Sync>>, groups: Option<Box<[gid_t]>>, stdin: Option<Stdio>, stdout: Option<Stdio>, stderr: Option<Stdio>, create_pidfd: bool,
}

Fields

program: CStringargs: Vec<CString>argv: Argv

Exactly what will be passed to execvp.

First element is a pointer to program, followed by pointers to args, followed by a null. Be careful when modifying program or args to properly update this as well.

env: CommandEnvcwd: Option<CString>uid: Option<uid_t>gid: Option<gid_t>saw_nul: boolclosures: Vec<Box<dyn FnMut() -> Result<()> + Send + Sync>>groups: Option<Box<[gid_t]>>stdin: Option<Stdio>stdout: Option<Stdio>stderr: Option<Stdio>create_pidfd: bool
This is supported on Linux only.

Implementations

This is supported on Linux only.
This is supported on Linux only.
This is supported on Linux only.
This is supported on Linux only.
This is supported on macOS, or FreeBSD, or Linux and GNU, or Linux and musl only.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.