pub comptime fn event(s: TypeDefinition) -> Quoted
Generates the core event functionality for a struct, including the EventInterface implementation (which provides the event type id) and a Serialize implementation if one is not already provided.
EventInterface
Serialize
The event struct must not exceed MAX_EVENT_SERIALIZED_LEN when serialized.
MAX_EVENT_SERIALIZED_LEN
Generates the core event functionality for a struct, including the
EventInterfaceimplementation (which provides the event type id) and aSerializeimplementation if one is not already provided.Requirements
The event struct must not exceed
MAX_EVENT_SERIALIZED_LENwhen serialized.