pub struct ProcessInfo {
pub pid: Pid,
pub links: usize,
pub monitors: usize,
pub names: Vec<String>,
pub label: Option<String>,
pub mailbox_depth: usize,
pub trap_exit: bool,
}Expand description
A point-in-time snapshot of a live process for observability — the analogue
of Erlang’s Process.info/1. Cheap to produce (a single table lookup). Run
vs. suspended status is deliberately omitted: Tokio doesn’t expose a task’s
park state, and faking it would mislead.
Fields§
§pid: Pid§links: usizeNumber of bidirectionally linked peers.
monitors: usizeNumber of processes monitoring this one.
names: Vec<String>Registry names this process holds.
label: Option<String>The optional human-readable label (see Runtime::set_label).
mailbox_depth: usizeItems waiting in the mailbox (channel + save queue), not yet consumed.
trap_exit: boolWhether this process traps exits.
Trait Implementations§
Source§impl Clone for ProcessInfo
impl Clone for ProcessInfo
Source§fn clone(&self) -> ProcessInfo
fn clone(&self) -> ProcessInfo
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 ProcessInfo
impl Debug for ProcessInfo
impl Eq for ProcessInfo
Source§impl PartialEq for ProcessInfo
impl PartialEq for ProcessInfo
Source§fn eq(&self, other: &ProcessInfo) -> bool
fn eq(&self, other: &ProcessInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProcessInfo
Auto Trait Implementations§
impl Freeze for ProcessInfo
impl RefUnwindSafe for ProcessInfo
impl Send for ProcessInfo
impl Sync for ProcessInfo
impl Unpin for ProcessInfo
impl UnsafeUnpin for ProcessInfo
impl UnwindSafe for ProcessInfo
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