pub trait IxaEvent: Copy + 'static {
// Provided methods
fn on_subscribe(_context: &mut Context) { ... }
fn on_unsubscribe(_context: &mut Context) { ... }
}Provided Methods§
Sourcefn on_subscribe(_context: &mut Context)
fn on_subscribe(_context: &mut Context)
Called after Context::subscribe_to_event registers a listener for
this event type.
Sourcefn on_unsubscribe(_context: &mut Context)
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.