1 2 3 4 5 6 7 8 9 10 11 12
use riker::actors::{Context, ActorRef, ActorMsg};
pub type Receive<Act, Msg> = fn(&mut Act, &Context<Msg>, Msg, Option<ActorRef<Msg>>);
pub type OtherReceive<Act, Msg> = fn(&mut Act, &Context<Msg>, ActorMsg<Msg>, Option<ActorRef<Msg>>);
#[macro_export]
macro_rules! transform {
($actor:expr, $f:expr) => {
$actor.rec = $f;
};
}