Draft first version of event subscriptions 🎉

This commit is contained in:
Héctor Ramón Jiménez 2019-12-05 06:10:13 +01:00
parent e92ea48e88
commit d575f45411
11 changed files with 182 additions and 12 deletions

View file

@ -1,4 +1,4 @@
use crate::{Application, Command, Element, Settings};
use crate::{Application, Command, Element, Settings, Subscription};
/// A sandboxed [`Application`].
///
@ -149,6 +149,10 @@ where
Command::none()
}
fn subscriptions(&self) -> Subscription<T::Message> {
Subscription::none()
}
fn view(&mut self) -> Element<'_, T::Message> {
T::view(self)
}