mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
feat(core): impl clone for Channel (#7174)
This commit is contained in:
5
.changes/core-channel-clone.md
Normal file
5
.changes/core-channel-clone.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'tauri': 'patch'
|
||||
---
|
||||
|
||||
Implement `Clone` for `Channel`
|
||||
@@ -26,6 +26,15 @@ pub struct Channel<R: Runtime> {
|
||||
window: Window<R>,
|
||||
}
|
||||
|
||||
impl<R: Runtime> Clone for Channel<R> {
|
||||
fn clone(&self) -> Self {
|
||||
Self {
|
||||
id: self.id,
|
||||
window: self.window.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Serialize for Channel {
|
||||
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user