2019-12-10 03:43:00 +01:00
|
|
|
use crate::{Event, Hasher};
|
2019-12-14 04:49:13 +01:00
|
|
|
use futures::stream::BoxStream;
|
2019-12-08 08:21:26 +01:00
|
|
|
|
2019-12-14 04:49:13 +01:00
|
|
|
pub type EventStream = BoxStream<'static, Event>;
|
2019-12-08 08:21:26 +01:00
|
|
|
|
2019-12-14 04:49:13 +01:00
|
|
|
pub type Subscription<T> = iced_core::Subscription<Hasher, EventStream, T>;
|
2019-12-14 04:12:42 +01:00
|
|
|
|
2019-12-14 04:49:13 +01:00
|
|
|
pub use iced_core::subscription::Recipe;
|
2019-12-14 04:12:42 +01:00
|
|
|
|
2019-12-14 04:49:13 +01:00
|
|
|
mod events;
|
2019-12-14 04:12:42 +01:00
|
|
|
|
2019-12-14 04:49:13 +01:00
|
|
|
use events::Events;
|
2019-12-14 04:12:42 +01:00
|
|
|
|
2019-12-14 04:49:13 +01:00
|
|
|
pub fn events() -> Subscription<Event> {
|
|
|
|
|
Subscription::from_recipe(Events)
|
2019-12-14 04:12:42 +01:00
|
|
|
}
|