pub fn invoke<C>(cmd: C) -> Invoke<C::Js>where
C: ToStringValue,Expand description
Invokes a command on the backend.
This function returns a future-like object that
can be extended with additional properties.
See with_args and
with_options for details.
ยงExample
use gloo::console;
let message = tauri_wasm::invoke("connect").await?;
console::log!("connected to backend", message);