tokio_process_tools/output.rs
1use std::process::ExitStatus;
2
3/// Full output of a process that terminated.
4///
5/// Both it's `stdout` and `stderr` streams were collected as individual lines. Depending on the
6/// [crate::LineParsingOptions] used, content might have been lost.
7#[derive(Debug, Clone, PartialEq, Eq)]
8pub struct Output {
9 /// Status the process exited with.
10 pub status: ExitStatus,
11
12 /// The processes entire output on its `stdout` stream, collected into individual lines.
13 ///
14 /// Depending on the [crate::LineParsingOptions] used, content might have been lost.
15 pub stdout: Vec<String>,
16
17 /// The processes entire output on its `stderr` stream, collected into individual lines.
18 ///
19 /// Depending on the [crate::LineParsingOptions] used, content might have been lost.
20 pub stderr: Vec<String>,
21}