Trait lunatic_distributed::DistributedCtx
source · pub trait DistributedCtx<E: Environment>: ProcessState + Sized {
// Required methods
fn new_dist_state(
environment: Arc<E>,
distributed: DistributedProcessState,
runtime: WasmtimeRuntime,
module: Arc<WasmtimeCompiledModule<Self>>,
config: Arc<Self::Config>
) -> Result<Self>;
fn distributed(&self) -> Result<&DistributedProcessState>;
fn distributed_mut(&mut self) -> Result<&mut DistributedProcessState>;
fn module_id(&self) -> u64;
fn environment_id(&self) -> u64;
fn can_spawn(&self) -> bool;
}