pub struct Command(Command);Expand description
A wrapper around the command API of the underlying async runtime.
Tuple Fields§
§0: CommandImplementations§
Source§impl Command
impl Command
Sourcepub fn new<S>(program: S) -> Self
pub fn new<S>(program: S) -> Self
Constructs a new Command for launching the program at path program.
Sourcepub fn for_unixexec(unixexec: &Unixexec) -> Self
pub fn for_unixexec(unixexec: &Unixexec) -> Self
Constructs a new Command from a unixexec address.
Sourcepub fn arg0<S>(&mut self, arg: S) -> &mut Self
pub fn arg0<S>(&mut self, arg: S) -> &mut Self
Sets executable argument.
Set the first process argument, argv[0], to something other than the
default executable path.
Sourcepub fn args<I, S>(&mut self, args: I) -> &mut Self
pub fn args<I, S>(&mut self, args: I) -> &mut Self
Adds multiple arguments to pass to the program.
Sourcepub fn stdin<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Self
pub fn stdin<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Self
Sets configuration for the child process’s standard input (stdin) handle.
Sourcepub fn stdout<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Self
pub fn stdout<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Self
Sets configuration for the child process’s standard output (stdout) handle.
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