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.

Required Methods§

source

fn id(&self) -> u64

source

fn send(&self, signal: Signal)

Trait Implementations§

source§

impl Debug for dyn Process + 'static

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Hash for dyn Process + 'static

source§

fn hash<H>(&self, state: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more

Implementors§