We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Clone
tauri::ExitRequestApi
1 parent dc90cd3 commit c108024Copy full SHA for c108024
.changes/clone-ExitRequestApi.md
@@ -0,0 +1,5 @@
1
+---
2
+tauri: 'minor:feat'
3
4
+
5
+derive `Clone` for `tauri::ExitRequestApi`.
crates/tauri/src/app.rs
@@ -72,7 +72,7 @@ pub type ChannelInterceptor<R> =
72
pub const RESTART_EXIT_CODE: i32 = i32::MAX;
73
74
/// Api exposed on the `ExitRequested` event.
75
-#[derive(Debug)]
+#[derive(Debug, Clone)]
76
pub struct ExitRequestApi(Sender<ExitRequestedEventAction>);
77
78
impl ExitRequestApi {
0 commit comments