|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
A typed event that pairs an event ID with its data type. More...
Public Attributes | |
| IdEnum | id |
| The event ID. | |
A typed event that pairs an event ID with its data type.
Used to register type-safe event listeners where the callback receives the correct data type directly, rather than a raw void pointer. The event base is looked up automatically from the enum type via ADL (see IDFXX_EVENT_DEFINE_BASE).
| IdEnum | The event ID enum type. |
| DataType | The event data type (must satisfy receivable_event_data), or void for events without data. |
The event ID.
Definition at line 199 of file event.hpp.
Referenced by idfxx::event_loop::try_listener_add().