Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/rustix
/ is_init
Method
is_init
src/pid.rs:100–102 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
98
/// Test whether this pid represents the init process ([`Pid::INIT`]).
99
#[inline]
100
pub const fn is_init(self) -> bool {
101
self.0.get() == Self::INIT.0.get()
102
}
103
}
104
105
impl fmt::Display for Pid {
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected