pub trait EventListenerExpand {
type Event: CubeType + 'static;
// Required method
fn __expand_on_event_method(
self,
scope: &mut Scope,
event: <Self::Event as CubeType>::ExpandType,
bus: <ComptimeEventBus as CubeType>::ExpandType,
) -> <() as CubeType>::ExpandType;
}Expand description
Defines a listener that is called each time an event is triggered on an event bus.
Required Associated Types§
Sourcetype Event: CubeType + 'static
type Event: CubeType + 'static
The event type triggering the EventListener::on_event callback.