Struct nix::unistd::Pid
pub struct Pid(_);
Documentation
Process identifier
Newtype pattern around pid_t
(which is just alias). It prevents bugs caused by accidentally
passing wrong value.
Implementations
Trait Implementations
impl Debug for Pid
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for Pid
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Hash for Pid
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl Ord for Pid
fn cmp(&Self, other: &Pid) -> $crate::cmp::Ordering
impl PartialOrd<Pid> for Pid
fn partial_cmp(&Self, other: &Pid) -> $crate::option::Option<$crate::cmp::Ordering>
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