Introduce event::Status to Subscription

This commit is contained in:
Héctor Ramón Jiménez 2020-11-12 02:22:22 +01:00
parent 33d80b5a0b
commit 69c50c8511
6 changed files with 50 additions and 29 deletions

View file

@ -1,5 +1,6 @@
//! Run commands and subscriptions.
use crate::{Event, Hasher};
use crate::event::{self, Event};
use crate::Hasher;
/// A native runtime with a generic executor and receiver of results.
///
@ -8,5 +9,10 @@ use crate::{Event, Hasher};
///
/// [`Command`]: ../struct.Command.html
/// [`Subscription`]: ../struct.Subscription.html
pub type Runtime<Executor, Receiver, Message> =
iced_futures::Runtime<Hasher, Event, Executor, Receiver, Message>;
pub type Runtime<Executor, Receiver, Message> = iced_futures::Runtime<
Hasher,
(Event, event::Status),
Executor,
Receiver,
Message,
>;