alias!() { /* proc-macro */ }
Expand description
Create a [RemoteActor
] handling a specific set of message types.
This is used to create an [ActorRef
] without having to depend on the
actor’s implementation. If the message type need to be cast, add castable
flag to those types. e.g. the following example creats an alias with 5
message types, and 4 of which need to be cast.
hyperactor::alias!(
TestActorAlias,
TestMessage { castable = true },
() {castable = true },
MyGeneric<()> {castable = true },
u64,
);