chikatetsu 0.1.0

An(other) actor framework for Tokio
Documentation
1
2
3
4
5
6
7
use async_trait::async_trait;
use crate::message::Message;

#[async_trait]
pub trait Handler<M: Message> {
    async fn handle(&mut self, msg: M) -> <M as Message>::Reply;
}