Skip to main content

muster/domain/pty/
output.rs

1/// The exit disposition of a process.
2#[derive(Debug, Clone, Copy, PartialEq, Eq)]
3pub enum ExitOutcome {
4    /// Exited with status zero.
5    Succeeded,
6    /// Exited with a non-zero status or was killed by a signal.
7    Failed,
8}
9
10/// An event emitted by a running process, delivered to the runtime.
11#[derive(Debug, Clone, PartialEq, Eq)]
12pub enum ProcessOutput {
13    /// A chunk of raw bytes read from the process's PTY.
14    Chunk(Vec<u8>),
15    /// The process exited with the given outcome.
16    Exited(ExitOutcome),
17}