Trait ReactiveInstanceEventManager

Source
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§

Source

fn emit_event(&self, event: ReactiveInstanceEvent)

Emits a system event.

Source

fn get_reactive_instance_event_instances(&self) -> Vec<ReactiveEntity>

Returns reactive entity instances which can be subscribed to listen for system events.

Source

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.

Trait Implementations§

Source§

impl Injectable for dyn ReactiveInstanceEventManager + Sync + Send

Implementors§