Skip to main content

EventConsumer

Attribute Macro EventConsumer 

Source
#[EventConsumer]
Expand description

#[EventConsumer] on an impl block — registers every #[EventPattern] method into the link-time event registry (the messaging analogue of #[Controller]). Methods take EventContext and return Result<(), String>.