tauri-syntax-events
Installation
SKILL.md
tauri-syntax-events
Quick Reference
Rust Event Traits (Tauri 2.x)
| Trait | Implemented By | Purpose |
|---|---|---|
Emitter |
App, AppHandle, Webview, WebviewWindow, Window |
Send events |
Listener |
App, AppHandle, Webview, WebviewWindow, Window |
Receive events |
Emitter Methods
| Method | Scope | Description |
|---|---|---|
emit(event, payload) |
Global | Broadcast to ALL listeners |
emit_str(event, payload) |
Global | Broadcast with pre-serialized JSON string |
emit_to(target, event, payload) |
Targeted | Send to a specific window/webview label |
emit_filter(event, payload, filter_fn) |
Filtered | Send to targets matching a predicate |