Struct rustix::process::Pid
#[repr(transparent)]
pub struct Pid(_);
Documentation
pid_t
—A non-zero Unix process ID.
Implementations
impl Pid
const INIT: Self = _
A Pid
corresponding to the init process (pid 1).
pub const unsafe fn from_raw_nonzero(raw: RawNonZeroPid) -> Self
pub fn from_child(child: &std::process::Child) -> Self
Creates a Pid
holding the ID of the given child process.
pub const fn as_raw_nonzero(Self) -> RawNonZeroPid
Converts a Pid
into a RawNonZeroPid
.
Trait Implementations
impl Debug for Pid
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Hash for Pid
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl StructuralEq for Pid
impl StructuralPartialEq for Pid
Auto Trait Implementations
impl RefUnwindSafe for Pid
impl UnwindSafe for Pid
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T