chikatetsu 0.1.0

An(other) actor framework for Tokio
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub trait Message {
    type Group: MessageGroup;
    type Reply;

    fn to_group(self) -> Self::Group;
}

pub trait MessageGroup: Send + 'static {
    type ReplyGroup: Send + 'static;
}

pub trait Reply: Sized {
    type Group;

    fn from_group(group: Self::Group) -> Option<Self>;
}