MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / from

Method from

crates/openshell-supervisor-process/src/process.rs:1403–1420  ·  view source on GitHub ↗
(status: std::process::ExitStatus)

Source from the content-addressed store, hash-verified

1401
1402impl 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

Calls 2

codeMethod · 0.80
signalMethod · 0.80

Tested by

no test coverage detected