pub struct Command {
pub args: Vec<String>,
pub cwd: Option<PathBuf>,
pub env: Option<HashMap<String, String>>,
pub gid: Option<u32>,
pub program: String,
pub uid: Option<u32>,
}Expand description
A command.
This is supported on feature=cmd only.
Fields§
§args: Vec<String>The arguments to pass to the command.
cwd: Option<PathBuf>The current working directory to run the command in.
env: Option<HashMap<String, String>>The environment variables to set for the command.
gid: Option<u32>The group to run the command as.
program: StringThe program to run.
uid: Option<u32>The user to run the command as.
Implementations§
Trait Implementations§
source§impl PartialEq for Command
impl PartialEq for Command
impl Eq for Command
impl StructuralEq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more