//! Result of a command run in a container. /// Result of a command run in a container. #[derive(Debug, Clone)] pub struct ExecOutput { /// Exit code, or `-1` if the process was terminated by a signal. pub status: i32, pub stdout: String, pub stderr: String, } impl ExecOutput { pub fn success(&self) -> bool { self.status == 0 } }