Remove generic Hasher and Event from subscription::Recipe
This commit is contained in:
parent
5fed065dc3
commit
f4cf488e0b
20 changed files with 341 additions and 406 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue