diff options
author | 2023-03-05 04:15:10 +0100 | |
---|---|---|
committer | 2023-03-05 04:15:10 +0100 | |
commit | f4cf488e0b083b5d7b7612c650917233163ee9cb (patch) | |
tree | 66b7ebdbf6896f472c927d0f0d9fc02bdc5c5f83 /src | |
parent | 5fed065dc3aa3d2f9ff8d229cbffe003a89ba033 (diff) | |
download | iced-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.rs | 5 | ||||
-rw-r--r-- | src/lib.rs | 8 |
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}; +} @@ -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. |