Takes the stdout contained in the child process. This leaves a `None` in its place, so calling methods that require a stdout to be present will fail if called after this.
(&mut self)
| 203 | /// This leaves a `None` in its place, so calling methods that require a stdout to be present |
| 204 | /// will fail if called after this. |
| 205 | pub fn stdout(&mut self) -> Result<ChildStdout, NodeError> { |
| 206 | self.pid.stdout.take().ok_or(NodeError::NoStdout) |
| 207 | } |
| 208 | |
| 209 | /// Send SIGTERM to gracefully shutdown the Reth process and wait for it to exit |
| 210 | pub fn terminate_and_wait(&mut self) -> std::io::Result<()> { |