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;
}

Required Methods§

source

fn new_dist_state( environment: Arc<E>, distributed: DistributedProcessState, runtime: WasmtimeRuntime, module: Arc<WasmtimeCompiledModule<Self>>, config: Arc<Self::Config> ) -> Result<Self>

source

fn distributed(&self) -> Result<&DistributedProcessState>

source

fn distributed_mut(&mut self) -> Result<&mut DistributedProcessState>

source

fn module_id(&self) -> u64

source

fn environment_id(&self) -> u64

source

fn can_spawn(&self) -> bool

Implementors§