pub trait ReactiveInstanceEventManager:
Send
+ Sync
+ Lifecycle {
// Required methods
fn emit_event(&self, event: ReactiveInstanceEvent);
fn get_reactive_instance_event_instances(&self) -> Vec<ReactiveEntity>;
fn get_reactive_instance_event_instance(
&self,
event_type: ReactiveInstanceEventTypes,
) -> Option<ReactiveEntity>;
}
Required Methods§
Sourcefn emit_event(&self, event: ReactiveInstanceEvent)
fn emit_event(&self, event: ReactiveInstanceEvent)
Emits a system event.
Sourcefn get_reactive_instance_event_instances(&self) -> Vec<ReactiveEntity>
fn get_reactive_instance_event_instances(&self) -> Vec<ReactiveEntity>
Returns reactive entity instances which can be subscribed to listen for system events.
Sourcefn get_reactive_instance_event_instance(
&self,
event_type: ReactiveInstanceEventTypes,
) -> Option<ReactiveEntity>
fn get_reactive_instance_event_instance( &self, event_type: ReactiveInstanceEventTypes, ) -> Option<ReactiveEntity>
Returns the reactive entity instance which can be subscribed to listen for the given system event.