diff options
author | 2021-07-13 21:15:07 +0200 | |
---|---|---|
committer | 2021-07-13 21:15:07 +0200 | |
commit | 5df2a92f28be1d53d32d5b42a6645459b7d78efe (patch) | |
tree | 424a30db96af6864b4c505b5358eb9ef18b40a13 /native | |
parent | 4abaee8b2354a666a75e4eb5ec9cc9a744936813 (diff) | |
download | iced-5df2a92f28be1d53d32d5b42a6645459b7d78efe.tar.gz iced-5df2a92f28be1d53d32d5b42a6645459b7d78efe.tar.bz2 iced-5df2a92f28be1d53d32d5b42a6645459b7d78efe.zip |
Force `Application::Message` to implement `Clone`
A `Message` should represent an application event (e.g. user
interactions, command results, subscription results...). Therefore, it
should always consist of pure, cloneable data.
Diffstat (limited to '')
-rw-r--r-- | native/src/program.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/program.rs b/native/src/program.rs index 066c29d8..75fab094 100644 --- a/native/src/program.rs +++ b/native/src/program.rs @@ -11,7 +11,7 @@ pub trait Program: Sized { type Renderer: Renderer; /// The type of __messages__ your [`Program`] will produce. - type Message: std::fmt::Debug + Send; + type Message: std::fmt::Debug + Clone + Send; /// The type of [`Clipboard`] your [`Program`] will use. type Clipboard: Clipboard; |