summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-05 04:15:10 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-03-05 04:15:10 +0100
commitf4cf488e0b083b5d7b7612c650917233163ee9cb (patch)
tree66b7ebdbf6896f472c927d0f0d9fc02bdc5c5f83 /src
parent5fed065dc3aa3d2f9ff8d229cbffe003a89ba033 (diff)
downloadiced-f4cf488e0b083b5d7b7612c650917233163ee9cb.tar.gz
iced-f4cf488e0b083b5d7b7612c650917233163ee9cb.tar.bz2
iced-f4cf488e0b083b5d7b7612c650917233163ee9cb.zip
Remove generic `Hasher` and `Event` from `subscription::Recipe`
Diffstat (limited to 'src')
-rw-r--r--src/advanced.rs5
-rw-r--r--src/lib.rs8
2 files changed, 12 insertions, 1 deletions
diff --git a/src/advanced.rs b/src/advanced.rs
index 714076e0..9621c3bc 100644
--- a/src/advanced.rs
+++ b/src/advanced.rs
@@ -7,3 +7,8 @@ pub use crate::core::svg;
pub use crate::core::text::{self, Text};
pub use crate::core::widget::{self, Widget};
pub use crate::core::{Clipboard, Shell};
+
+pub mod subscription {
+ //! Write your own subscriptions.
+ pub use crate::native::futures::subscription::{EventStream, Recipe};
+}
diff --git a/src/lib.rs b/src/lib.rs
index b71b7781..b9f87d5d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -193,7 +193,6 @@ pub use crate::core::{
Rectangle, Size, Vector,
};
pub use crate::native::Command;
-pub use native::subscription;
pub mod clipboard {
//! Access the clipboard.
@@ -233,6 +232,13 @@ pub mod mouse {
pub use crate::core::mouse::{Button, Event, Interaction, ScrollDelta};
}
+pub mod subscription {
+ //! Listen to external events in your application.
+ pub use iced_futures::subscription::{
+ events, events_with, run, run_with_id, unfold, Subscription,
+ };
+}
+
#[cfg(feature = "system")]
pub mod system {
//! Retrieve system information.