pub fn init<R: Runtime>() -> TauriPlugin<R>
Expand description
Initializes the serial plugin for Tauri
This function creates and configures the serial plugin with all available commands for serial port operations. It sets up the necessary state management and registers the plugin with the Tauri application.
§Returns
A configured TauriPlugin
instance that can be added to your Tauri app.
§Example
ⓘ
use tauri_plugin_serialplugin::init;
fn main() {
tauri::Builder::default()
.plugin(init())
// .run(tauri::generate_context!())
// .expect("error while running tauri application");
}