Actix-Lua
Features
- Handling messages with Lua
- Dynamic message type
Usage
Add actix-lua
to your Cargo.toml
:
[]
= "0.1"
Implement an Actor
You can define an actor with Lua, for example:
extern crate actix_lua;
use ;
Message Type
LuaActor
only accept messages with type LuaMessage
. The result of LuaMessage
is also LuaMessage
.
LuaMessage
is defined as:
It's the sender's job to check the returned value type from Lua is what they want.
License
The MIT License