[go: up one dir, main page]

[][src]Function tauri::event::emit

pub fn emit<T: 'static, S: Serialize>(
    webview_handle: &Handle<T>,
    event: impl AsRef<str> + Send + 'static,
    payload: Option<S>
) -> Result<()>

Emits an event to JS.