ActorExecutor

Trait ActorExecutor 

Source
pub trait ActorExecutor: Send + Sync {
    // Required methods
    fn actor_id(&self) -> &str;
    fn logical_name(&self) -> &str;
    fn auto_spawn(&self) -> bool;
    fn required_spawn_with(&self) -> Vec<&str>;
    fn run(
        &self,
        scope: Scope,
        tx: Sender<MessageEnvelope>,
        rx: Receiver<MessageEnvelope>,
        context: Arc<WasmindContext>,
        engine: Engine,
    ) -> Pin<Box<dyn Future<Output = ()> + Send>>;
}

Required Methods§

Source

fn actor_id(&self) -> &str

Source

fn logical_name(&self) -> &str

Source

fn auto_spawn(&self) -> bool

Source

fn required_spawn_with(&self) -> Vec<&str>

Source

fn run( &self, scope: Scope, tx: Sender<MessageEnvelope>, rx: Receiver<MessageEnvelope>, context: Arc<WasmindContext>, engine: Engine, ) -> Pin<Box<dyn Future<Output = ()> + Send>>

Implementations on Foreign Types§

Source§

impl ActorExecutor for LoadedActor

Source§

fn actor_id(&self) -> &str

Source§

fn logical_name(&self) -> &str

Source§

fn auto_spawn(&self) -> bool

Source§

fn required_spawn_with(&self) -> Vec<&str>

Source§

fn run( &self, scope: Scope, tx: Sender<MessageEnvelope>, rx: Receiver<MessageEnvelope>, context: Arc<WasmindContext>, engine: Engine, ) -> Pin<Box<dyn Future<Output = ()> + Send>>

Implementors§