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

Method as_raw_nonzero

src/pid.rs:77–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 /// Converts a `Pid` into a `NonZeroI32`.
76 #[inline]
77 pub const fn as_raw_nonzero(self) -> NonZeroI32 {
78 self.0
79 }
80
81 /// Converts a `Pid` into a `RawPid`.
82 ///

Callers 15

tcsetpgrpFunction · 0.45
waitpgidFunction · 0.45
kill_processFunction · 0.45
kill_process_groupFunction · 0.45
test_kill_processFunction · 0.45
test_kill_process_groupFunction · 0.45
pidfd_openFunction · 0.45
fromMethod · 0.45
negative_pidFunction · 0.45
tcsetpgrpFunction · 0.45
waitpgidFunction · 0.45
core_scheduling_cookieFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_kill_processFunction · 0.36
test_kill_process_groupFunction · 0.36