Hey!
I'm trying to create an async command with Tauri, but whenever I use invoke_handler I get this error. There's probably something I'm missing, any ideas?
error[E0599]: the method `async_kind` exists for reference `&impl Future<Output = Result<String, Box<dyn Error>>>`, but its trait bounds were not satisfied
--> src/main.rs:13:1
|
13 | #[tauri::command]
| ^^^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds
...
38 | .invoke_handler(tauri::generate_handler![test])
| ------------------------------- in this macro invocation
|