pub trait Process: Send + Sync {
    fn id(&self) -> Uuid;
fn send(&self, signal: Signal); }
Expand description

The Process is the main abstraction unit 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 can be interpreted by the receiver in different ways.

Required methods

Trait Implementations

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors