Trait tether::Handler
[−]
[src]
pub trait Handler: 'static { fn message(&mut self, win: Window, msg: &str) { ... } fn suspend(&mut self, win: Window) { ... } }
An event handler.
Provided Methods
fn message(&mut self, win: Window, msg: &str)
Called when a message has been sent from the webpage.
fn suspend(&mut self, win: Window)
A warning that the system may be about to unceremoniously kill your app. Saving things is probably a good idea.