pub struct ParentProcessId(/* private fields */);Expand description
A non-zero numeric parent process identifier.
Implementations§
Source§impl ParentProcessId
impl ParentProcessId
Sourcepub fn new(value: u32) -> Result<ParentProcessId, ProcessIdError>
pub fn new(value: u32) -> Result<ParentProcessId, ProcessIdError>
Creates a parent process ID from a non-zero numeric value.
§Errors
Returns ProcessIdError::Zero when value is zero.
Trait Implementations§
Source§impl Clone for ParentProcessId
impl Clone for ParentProcessId
Source§fn clone(&self) -> ParentProcessId
fn clone(&self) -> ParentProcessId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParentProcessId
impl Debug for ParentProcessId
Source§impl Display for ParentProcessId
impl Display for ParentProcessId
Source§impl Hash for ParentProcessId
impl Hash for ParentProcessId
Source§impl Ord for ParentProcessId
impl Ord for ParentProcessId
Source§fn cmp(&self, other: &ParentProcessId) -> Ordering
fn cmp(&self, other: &ParentProcessId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParentProcessId
impl PartialEq for ParentProcessId
Source§fn eq(&self, other: &ParentProcessId) -> bool
fn eq(&self, other: &ParentProcessId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ParentProcessId
impl PartialOrd for ParentProcessId
Source§impl TryFrom<u32> for ParentProcessId
impl TryFrom<u32> for ParentProcessId
Source§type Error = ProcessIdError
type Error = ProcessIdError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u32,
) -> Result<ParentProcessId, <ParentProcessId as TryFrom<u32>>::Error>
fn try_from( value: u32, ) -> Result<ParentProcessId, <ParentProcessId as TryFrom<u32>>::Error>
Performs the conversion.
impl Copy for ParentProcessId
impl Eq for ParentProcessId
impl StructuralPartialEq for ParentProcessId
Auto Trait Implementations§
impl Freeze for ParentProcessId
impl RefUnwindSafe for ParentProcessId
impl Send for ParentProcessId
impl Sync for ParentProcessId
impl Unpin for ParentProcessId
impl UnsafeUnpin for ParentProcessId
impl UnwindSafe for ParentProcessId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more