Function eventbus::get_post_targets

source ·
pub fn get_post_targets<T: Event + ?Sized>(
    bus: &EventBus,
    _event: &mut T,
    id: usize
) -> Arc<Vec<(i32, Arc<dyn Fn(&mut T) + Send + Sync>)>>
Expand description

Low-level event handling function, returns the handlers that should be called to post the event.

This is useful if you want to simulate inheritance.

Panics

Panics if id doesn’t match the given T (but not if the given id doesn’t exist).