Skip to main content

Crate tactix_macros

Crate tactix_macros 

Source
Expand description

Derive macro for the Message trait.

§Usage

use macros::Message;

// Fire-and-forget message (Response = ())
#[derive(Message)]
struct Increment;

// Message with a response
#[derive(Message)]
#[response(u64)]
struct GetCount;

Derive Macros§

Message
Derives the Message trait for a struct or enum.