[−][src]Function tauri_react::command_handler
pub fn command_handler<T: ApplicationState + 'static>(
webview: &mut Webview<'_>,
arg: &str,
state: &'static Lazy<Arc<dyn StoreState<T>>>,
commands: &'static Lazy<HashMap<String, Box<dyn Fn(T, Value) -> Result<T> + Send + Sync + 'static>>>
) -> Result<(), String>