Typed wrapper around Tauri's listen.
listen
The event name must be a key in TauriEventMap — unknown event names are a compile error. The handler receives the payload typed by the map entry.
TauriEventMap
Returns an UnlistenFn that should be called when the listener is no longer needed (e.g. on component unmount).
UnlistenFn
Typed wrapper around Tauri's
listen.The event name must be a key in
TauriEventMap— unknown event names are a compile error. The handler receives the payload typed by the map entry.Returns an
UnlistenFnthat should be called when the listener is no longer needed (e.g. on component unmount).