Skip to main content

destroy

Function destroy 

Source
pub fn destroy<R: Runtime, M: Manager<R>>(manager: &M)
Expand description

Releases the resources this plugin uses to detect other instances (the named mutex on Windows, the D-Bus name on Linux or the Unix socket on macOS).

The plugin calls this automatically on tauri::RunEvent::Exit, so you normally don’t need to call it yourself. Call it manually before terminating the process through means that skip that event, such as std::process::exit, so a future instance of the app isn’t mistaken for a still-running one.