pub trait ActorExecutor: Send + Sync {
// Required methods
fn execute(&self, actor_id: &ActorId, message: &Message) -> ExecutionResult;
fn is_ready(&self, actor_id: &ActorId) -> bool;
fn get_fuel(&self, actor_id: &ActorId) -> Option<u64>;
fn reset(&self, actor_id: &ActorId) -> Result<()>;
}Expand description
Trait for executing actor messages.
Implementations handle the actual invocation of actor code, whether through WASM, native code, or other mechanisms.
Required Methods§
Sourcefn execute(&self, actor_id: &ActorId, message: &Message) -> ExecutionResult
fn execute(&self, actor_id: &ActorId, message: &Message) -> ExecutionResult
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".