Attribute Macro anchor_attribute_event::event

source ·
#[event]
Expand description

The event attribute allows a struct to be used with emit! so that programs can log significant events in their programs that clients can subscribe to. Currently, this macro is for structs only.

See the emit! macro for an example.