Method
from
(status: std::process::ExitStatus)
Source from the content-addressed store, hash-verified
| 1401 | |
| 1402 | impl From<std::process::ExitStatus> for ProcessStatus { |
| 1403 | fn from(status: std::process::ExitStatus) -> Self { |
| 1404 | #[cfg(unix)] |
| 1405 | { |
| 1406 | use std::os::unix::process::ExitStatusExt; |
| 1407 | Self { |
| 1408 | code: status.code(), |
| 1409 | signal: status.signal(), |
| 1410 | } |
| 1411 | } |
| 1412 | |
| 1413 | #[cfg(not(unix))] |
| 1414 | { |
| 1415 | Self { |
| 1416 | code: status.code(), |
| 1417 | signal: None, |
| 1418 | } |
| 1419 | } |
| 1420 | } |
| 1421 | } |
| 1422 | |
| 1423 | #[cfg(test)] |
Callers
nothing calls this directly
Tested by
no test coverage detected