pub struct Command {
pub process: Process,
pub args: Vec<Arg>,
pub cwd: Option<String>,
pub env: BTreeMap<String, String>,
}
Fields§
§process: Process
§args: Vec<Arg>
§cwd: Option<String>
The directory to run the program from.
env: BTreeMap<String, String>
Implementations§
Source§impl Command
impl Command
pub fn try_create<P>(process: P) -> Result<Command, InvalidProcess>
pub fn arg<A>(self, arg: A) -> Result<Command, InvalidArg>
Trait Implementations§
Source§impl From<Command> for CommandBuilder
impl From<Command> for CommandBuilder
Source§fn from(command: Command) -> CommandBuilder
fn from(command: Command) -> CommandBuilder
Converts to this type from the input type.
Source§impl Ord for Command
impl Ord for Command
Source§impl PartialOrd for Command
impl PartialOrd for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
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