Skip to main content

IxaEvent

Trait IxaEvent 

Source
pub trait IxaEvent: Copy + 'static {
    // Provided methods
    fn on_subscribe(_context: &mut Context) { ... }
    fn on_unsubscribe(_context: &mut Context) { ... }
}

Provided Methods§

Source

fn on_subscribe(_context: &mut Context)

Called after Context::subscribe_to_event registers a listener for this event type.

Source

fn on_unsubscribe(_context: &mut Context)

Called after Context::unsubscribe_from_event successfully removes a listener for this event type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E: Entity> IxaEvent for EntityCreatedEvent<E>
where EntityCreatedEvent<E>: 'static,

Source§

impl<E: Entity, P: Property<E>> IxaEvent for PropertyChangeEvent<E, P>
where PropertyChangeEvent<E, P>: 'static,