mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
process: add Command::as_std_mut (#6608)
This commit is contained in:
@@ -325,6 +325,12 @@ impl Command {
|
|||||||
&self.std
|
&self.std
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Cheaply convert to a `&mut std::process::Command` for places where the type from the
|
||||||
|
/// standard library is expected.
|
||||||
|
pub fn as_std_mut(&mut self) -> &mut StdCommand {
|
||||||
|
&mut self.std
|
||||||
|
}
|
||||||
|
|
||||||
/// Adds an argument to pass to the program.
|
/// Adds an argument to pass to the program.
|
||||||
///
|
///
|
||||||
/// Only one argument can be passed per use. So instead of:
|
/// Only one argument can be passed per use. So instead of:
|
||||||
|
|||||||
Reference in New Issue
Block a user