summaryrefslogtreecommitdiffstats
path: root/native/src/subscription.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-08 08:21:26 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-08 08:21:26 +0100
commit98160406f714728afe718f305bf9d12be1676b2d (patch)
treebf8fec3cb66bc478a021aba156d6be580586616e /native/src/subscription.rs
parent9b84b6e40336543380312aa1b2b1091791ec25cd (diff)
downloadiced-98160406f714728afe718f305bf9d12be1676b2d.tar.gz
iced-98160406f714728afe718f305bf9d12be1676b2d.tar.bz2
iced-98160406f714728afe718f305bf9d12be1676b2d.zip
Allow listening to runtime events in subscriptions
Diffstat (limited to '')
-rw-r--r--native/src/subscription.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/native/src/subscription.rs b/native/src/subscription.rs
new file mode 100644
index 00000000..5fa026a2
--- /dev/null
+++ b/native/src/subscription.rs
@@ -0,0 +1,6 @@
+use crate::Event;
+
+pub type Subscription<T> = iced_core::Subscription<Input, T>;
+pub type Input = futures::channel::mpsc::Receiver<Event>;
+
+pub use iced_core::subscription::Connection;