Attribute Macro hannibal_derive::message

source ·
#[message]
Expand description

Implement an hannibal 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);