(&self)
| 1381 | /// Get the exit code, or 128 + signal number if killed by signal. |
| 1382 | #[must_use] |
| 1383 | pub fn code(&self) -> i32 { |
| 1384 | self.code |
| 1385 | .or_else(|| self.signal.map(|s| 128 + s)) |
| 1386 | .unwrap_or(-1) |
| 1387 | } |
| 1388 | |
| 1389 | /// Check if the process exited successfully. |
| 1390 | #[must_use] |
no outgoing calls