[−][src]Trait euca::app::application::Application
All of the functions one might perform on a wasm application.
Required methods
fn update(&mut self, msg: Message) -> Commands<Command>
Update the application with a message.
fn render(&mut self, app: &Dispatcher<Message, Command>) -> Vec<Command>
Tell the application to render itself.
fn process(&self, cmd: Command, app: &Dispatcher<Message, Command>)
Process side effecting commands.
fn get_scheduled_render(&mut self) -> &mut Option<ScheduledRender<Command>>
Get a reference to any pending rendering.
fn set_scheduled_render(&mut self, handle: ScheduledRender<Command>)
Store a reference to any pending rendering.
fn push_listener(&mut self, listener: (String, Closure<dyn FnMut(Event)>))
Store a listener that will be canceled when the app is detached.
fn node(&self) -> Option<Node>
The first node of app.
fn nodes(&self) -> Vec<Node>
Get all the top level nodes of node this app.
fn create(&mut self, app: &Dispatcher<Message, Command>) -> Vec<Node>
Create the dom nodes for this app.
fn detach(&mut self, app: &Dispatcher<Message, Command>)
Detach the app from the dom.