summaryrefslogtreecommitdiffstats
path: root/native/src/runtime.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-12 02:22:22 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-12 02:22:22 +0100
commit69c50c851193348ed3aab746678741f3cdda9fb3 (patch)
treefe8fe23c2de55cbb3af21e0682a9a51121b2b357 /native/src/runtime.rs
parent33d80b5a0b8b5b2837c99be2a152bdeb73ca60c8 (diff)
downloadiced-69c50c851193348ed3aab746678741f3cdda9fb3.tar.gz
iced-69c50c851193348ed3aab746678741f3cdda9fb3.tar.bz2
iced-69c50c851193348ed3aab746678741f3cdda9fb3.zip
Introduce `event::Status` to `Subscription`
Diffstat (limited to 'native/src/runtime.rs')
-rw-r--r--native/src/runtime.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/native/src/runtime.rs b/native/src/runtime.rs
index 9fa031f4..bd814a0b 100644
--- a/native/src/runtime.rs
+++ b/native/src/runtime.rs
@@ -1,5 +1,6 @@
//! Run commands and subscriptions.
-use crate::{Event, Hasher};
+use crate::event::{self, Event};
+use crate::Hasher;
/// A native runtime with a generic executor and receiver of results.
///
@@ -8,5 +9,10 @@ use crate::{Event, Hasher};
///
/// [`Command`]: ../struct.Command.html
/// [`Subscription`]: ../struct.Subscription.html
-pub type Runtime<Executor, Receiver, Message> =
- iced_futures::Runtime<Hasher, Event, Executor, Receiver, Message>;
+pub type Runtime<Executor, Receiver, Message> = iced_futures::Runtime<
+ Hasher,
+ (Event, event::Status),
+ Executor,
+ Receiver,
+ Message,
+>;