tauri_store/collection/handle/desktop.rs
1use tauri::{AppHandle, Runtime};
2
3/// Plugin handle.
4pub struct Handle<R: Runtime>(AppHandle<R>);
5
6#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
7impl<R: Runtime> Handle<R> {
8 pub fn new(handle: AppHandle<R>) -> Self {
9 Self(handle)
10 }
11
12 pub fn app(&self) -> &AppHandle<R> {
13 &self.0
14 }
15}