Linkd
A simple actor model framework that takes inspiration from OTP in the erlang ecosystem.
Linkd is a high level abstraction that focuses more on high level features. It assumes you call it inside an async tokio runtime.
Getting started
Your actor needs to define three parts:
- The type and initial value of internal state.
- The type of all incoming messages.
- The type of all possible responses.
You then implement the handler for your message type and you're done.
Below is a simple actor that can get pinged, and will respond with pong.
use async_trait;
use ;
;
async