pub struct Output {
pub pid: pid_t,
pub status: Option<ExitStatus>,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub timed_out: bool,
pub stdout_early_exited: bool,
pub stdout_pending: Option<Vec<u8>>,
pub stderr_pending: Option<Vec<u8>>,
pub swept_members: bool,
}Expand description
The result of a process execution.
Fields§
§pid: pid_tThe PID of the finished process.
status: Option<ExitStatus>Final exit status (None if wait=false).
stdout: Vec<u8>Captured stdout buffer.
stderr: Vec<u8>Captured stderr buffer.
timed_out: boolWhether the process timed out.
stdout_early_exited: boolWhether stdout drain stopped because the early-exit callback matched.
stdout_pending: Option<Vec<u8>>Streaming mode: the stdout chunk held while the sink queue was full at completion (empty/none when no sink was attached). The caller must flush it before delivering the terminal frame.
stderr_pending: Option<Vec<u8>>Streaming mode: the stderr chunk held while the sink queue was full at completion.
swept_members: boolThe session sweep that allowed completion SIGKILLed at least one live
session member (a background/contained process that outlived the
leader). true means the job’s own exit did not leave the session
empty — the caller (daemon) may want to surface this to the user.
Always false for non-session spawns and under
SessionExitPolicy::LetMembersSurvive.