#[actor]Expand description
Generates the actor impls and forms necessary fields.
§vin::handles() proc macro
Specifies which message the actor handles, then generates code to handle the message.
§Arguments
- message type
- maximum messages to handle concurrently (optional)
§Example
ⓘ
#[vin::actor]
#[vin::handles(MyMsg)]
struct MyActor;
/* or */
#[vin::actor]
#[vin::handles(MyMsg, max = 1024)]
struct MyActor;