pub struct BeamProcess {
pub pid_sym: String,
pub module: String,
pub init_fn: String,
pub init_args: Vec<BeamExpr>,
pub linked: bool,
pub monitored: bool,
pub dictionary: Vec<(String, BeamExpr)>,
pub trap_exit: bool,
}Expand description
Represents a BEAM process (actor) in the actor model.
BEAM processes are lightweight and communicate via asynchronous message passing through mailboxes.
Fields§
§pid_sym: StringUnique process identifier (symbolic)
module: StringModule where this process is defined
init_fn: StringStartup function name
init_args: Vec<BeamExpr>Initial arguments
linked: boolWhether this process is linked (crashes propagate)
monitored: boolWhether this process is monitored
dictionary: Vec<(String, BeamExpr)>Process dictionary entries (name → value)
trap_exit: boolTrap-exit flag: catches EXIT signals as messages
Implementations§
Trait Implementations§
Source§impl Clone for BeamProcess
impl Clone for BeamProcess
Source§fn clone(&self) -> BeamProcess
fn clone(&self) -> BeamProcess
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BeamProcess
impl RefUnwindSafe for BeamProcess
impl Send for BeamProcess
impl Sync for BeamProcess
impl Unpin for BeamProcess
impl UnsafeUnpin for BeamProcess
impl UnwindSafe for BeamProcess
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