mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
feat(tauri): derive Clone for tauri::ExitRequestApi (#12710)
This commit is contained in:
5
.changes/clone-ExitRequestApi.md
Normal file
5
.changes/clone-ExitRequestApi.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
tauri: 'minor:feat'
|
||||
---
|
||||
|
||||
derive `Clone` for `tauri::ExitRequestApi`.
|
||||
@@ -72,7 +72,7 @@ pub type ChannelInterceptor<R> =
|
||||
pub const RESTART_EXIT_CODE: i32 = i32::MAX;
|
||||
|
||||
/// Api exposed on the `ExitRequested` event.
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ExitRequestApi(Sender<ExitRequestedEventAction>);
|
||||
|
||||
impl ExitRequestApi {
|
||||
|
||||
Reference in New Issue
Block a user