process: add Command::into_std() (#7014)

This commit is contained in:
29
2024-12-07 12:56:02 +01:00
committed by GitHub
parent 67355c6d23
commit dc16b12edb
+9
View File
@@ -330,6 +330,15 @@ impl Command {
&mut self.std
}
/// Cheaply convert into a `std::process::Command`.
///
/// Note that Tokio specific options will be lost. Currently, this only applies to [`kill_on_drop`].
///
/// [`kill_on_drop`]: Command::kill_on_drop
pub fn into_std(self) -> StdCommand {
self.std
}
/// Adds an argument to pass to the program.
///
/// Only one argument can be passed per use. So instead of: