use ::yaaf::prelude::*; #[derive(Clone, Debug)] struct ValidMessage; #[derive(Clone, Debug)] struct InvalidMessage; #[derive(Actor)] #[handle(ValidMessage)] struct MyActor; #[async_trait] impl Handler for MyActor { async fn handle(&mut self, ctx: &mut Context, _message: ValidMessage) { ctx.publish(InvalidMessage); } } fn main() {}