pub struct Pid(/* private fields */);Expand description
A process ID (PID).
Implementations§
Source§impl Pid
impl Pid
Sourcepub fn colored(self) -> ColoredPid
pub fn colored(self) -> ColoredPid
Returns a Displayable that is color-coded. That is, the same PID will
get the same color. This makes it easy to visually recognize PIDs when
looking through logs.
Note that while the same PIDs always have the same color, different PIDs may also have the same color if they fall into the same color bucket.
Trait Implementations§
impl Copy for Pid
Source§impl<'de> Deserialize<'de> for Pid
impl<'de> Deserialize<'de> for Pid
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Pid
Source§impl Ord for Pid
impl Ord for Pid
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Pid
impl PartialOrd for Pid
impl StructuralPartialEq for Pid
Auto Trait Implementations§
impl Freeze for Pid
impl RefUnwindSafe for Pid
impl Send for Pid
impl Sync for Pid
impl Unpin for Pid
impl UnsafeUnpin for Pid
impl UnwindSafe for Pid
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