MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / exit_status

Method exit_status

src/process/wait.rs:139–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 #[inline]
138 #[doc(alias = "WEXITSTATUS")]
139 pub fn exit_status(self) -> Option<i32> {
140 if self.exited() {
141 Some(backend::process::wait::WEXITSTATUS(self.0))
142 } else {
143 None
144 }
145 }
146
147 /// Returns the number of the signal that terminated the process, if the
148 /// process was terminated by a signal.

Callers 1

fmtMethod · 0.80

Calls 3

WEXITSTATUSFunction · 0.85
exitedMethod · 0.80
si_statusMethod · 0.45

Tested by

no test coverage detected