1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use riker::actors::{Context, Sender}; // NOTE: // Transform! will be updated in the near future, // most likely trait-based. // This is fairly old currently. pub type Receive<Act, Msg> = fn(&mut Act, &Context<Msg>, Msg, Sender); pub type OtherReceive<Act, Msg> = fn(&mut Act, &Context<Msg>, Msg, Sender); #[macro_export] macro_rules! transform { ($actor:expr, $f:expr) => { $actor.rec = $f; }; }