We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Command::as_std_mut
1 parent 75c953b commit 8fca6f6Copy full SHA for 8fca6f6
tokio/src/process/mod.rs
@@ -325,6 +325,12 @@ impl Command {
325
&self.std
326
}
327
328
+ /// Cheaply convert to a `&mut std::process::Command` for places where the type from the
329
+ /// standard library is expected.
330
+ pub fn as_std_mut(&mut self) -> &mut StdCommand {
331
+ &mut self.std
332
+ }
333
+
334
/// Adds an argument to pass to the program.
335
///
336
/// Only one argument can be passed per use. So instead of:
0 commit comments