pub struct ProcessState {
pub pid: Pid,
pub trap_exit: bool,
pub links: HashSet<Pid>,
pub monitors: HashMap<Ref, Pid>,
pub monitored_by: HashMap<Ref, Pid>,
pub terminated: bool,
pub exit_reason: Option<ExitReason>,
}Expand description
Internal state shared between the process and its handle.
Fields§
§pid: PidThe process identifier.
trap_exit: boolWhether the process is trapping exits.
links: HashSet<Pid>Processes linked to this one (bidirectional).
monitors: HashMap<Ref, Pid>Monitors this process has created (ref -> monitored pid).
monitored_by: HashMap<Ref, Pid>Processes monitoring this one (ref -> monitoring pid).
terminated: boolWhether the process has terminated.
exit_reason: Option<ExitReason>The exit reason if terminated.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessState
impl RefUnwindSafe for ProcessState
impl Send for ProcessState
impl Sync for ProcessState
impl Unpin for ProcessState
impl UnsafeUnpin for ProcessState
impl UnwindSafe for ProcessState
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