[][src]Function tauri::event::on_event

pub fn on_event(event: String, data: Option<String>)

Triggers the given event with its payload.