Function trigger

Source
pub fn trigger<'a, E: Event<Trigger<'a>: Default>>(event: E) -> impl Command
Expand description

Triggers the given Event, which will run any Observers watching for it.