Expand description
Procedural macros for rakka. Ergonomics over rakka-core.
Exposes:
#[actor_msg]attribute — addsDebugderive and rakka-friendly conventions to a message enum.#[derive(Actor)]with#[msg(MyMsgEnum)]— generates a thinimpl Actorthat delegates to the struct’shandle_msgmethod, removing theasync_traitboilerplate users would otherwise repeat.#[derive(Receive)]with#[msg(MyMsgEnum)]— generates ahandlemethod that dispatches enum variants toon_<variant>methods on the actor (Phase 1.E ofdocs/full-port-plan.md).props!macro — terseProps::create(|| ExprThatBuildsAnActor).
Macros§
- props
props!(EXPR)— terseProps::create(|| EXPR).
Attribute Macros§
- actor_
msg #[actor_msg]— sugar to declare a message enum.