Skip to main content

message

Attribute Macro message 

Source
#[message]
Expand description

Implement an xactor message type.

The return value type defaults to (), and you can specify the type with the result parameter.

§Examples

#[message(result = "i32")]
struct TestMessage(i32);