#[derive(Message)]
{
// Attributes available to this derive:
#[msg]
}
Expand description
Macro for deriving the Message trait to allow something to be sent as a message
use interlink::prelude::*;
/// Default message response type is ()
#[derive(Message)]
struct MyMessage;
/// Message with a string response type
#[derive(Message)]
#[msg(rtype = "String")]
struct MySecondMessage;