Trait lunatic_process::Process
source · pub trait Process: Send + Sync {
// Required methods
fn id(&self) -> u64;
fn send(&self, signal: Signal);
}
Expand description
The Process
is the main abstraction in lunatic.
It usually represents some code that is being executed (Wasm instance or V8 isolate), but it could also be a resource (GPU, UDP connection) that can be interacted with through messages.
The only way of interacting with them is through signals. These signals can come in different
shapes (message, kill, link, …). Most signals have well defined meanings, but others such as
a Message
are opaque and left to the receiver for interpretation.