Skip to main content

actor_msg

Attribute Macro actor_msg 

Source
#[actor_msg]
Expand description

#[actor_msg] — sugar to declare a message enum.

Adds #[derive(Debug)] automatically and marks the enum non_exhaustive so adding variants is not a breaking change for downstream matchers.

#[actor_msg]
enum CounterMsg { Inc, Get(tokio::sync::oneshot::Sender<u32>) }