| 1 | //! Module dedicated to spawn status. |
| 2 | |
| 3 | use std::process::{ExitStatus, Stdio}; |
| 4 | |
| 5 | /// The process spawn exit status. |
| 6 | /// |
| 7 | /// Wrapper containing the standard exit status, stdin, stdout and |
| 8 | /// stderr of a spawned command. |
| 9 | #[derive(Debug)] |
| 10 | pub struct SpawnStatus { |
| 11 | pub status: ExitStatus, |
| 12 | pub stdin: Option<Stdio>, |
| 13 | pub stdout: Option<Stdio>, |
| 14 | pub stderr: Option<Stdio>, |
| 15 | } |