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 releases them automatically in AppHandle::cleanup_before_exit, which Tauri runs
right before the process exits or restarts (after your tauri::RunEvent::Exit handler
returns), so you normally don’t need to call this yourself and the app keeps being the single
instance while your own exit cleanup runs. Call it manually to release the lock earlier, or
before terminating the process through means that skip AppHandle::cleanup_before_exit, such
as std::process::exit, so a future instance of the app isn’t mistaken for a still-running
one.