vfa_tui/subprocess/stream.rs
1use std::time::Instant;
2
3/// Identifies which output stream a line came from.
4#[derive(Debug, Clone, PartialEq, Eq)]
5pub enum OutputStream {
6 Stdout,
7 Stderr,
8}
9
10/// A single line of output from a subprocess.
11#[derive(Debug, Clone)]
12pub struct OutputLine {
13 pub content: String,
14 pub timestamp: Instant,
15 pub stream: OutputStream,
16}