tauri::event
pub fn listen<F: FnMut(Option<String>) + Send + 'static>( id: impl Into<String>, handler: F)
Adds an event listener for JS events.