tyra 1.0.0

Typed Actor System
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::prelude::ActorMessage;

/// Can be implemented by an Actor through Handler<ActorInitMessage> to be used to init an Actor
pub struct ActorInitMessage {}

impl ActorInitMessage {
    pub fn new() -> Self {
        Self {}
    }
}

/// intentionally implements `ActorMessage`, because it does NOT provide a generic `Handler<ActorInitMessage>` implementation
impl ActorMessage for ActorInitMessage {}