[][src]Trait tether::Handler

pub trait Handler: 'static {
    fn handle(&mut self, window: Window, message: &str) { ... }
}

An event handler; you probably want to implement one.

  • When the webpage calls window.tether, the message is passed to handle.
  • The handler is dropped when the window is closed.

Provided methods

fn handle(&mut self, window: Window, message: &str)

The webpage called window.tether with the given string.

Loading content...

Implementors

impl<F: FnMut(Window, &str) + 'static> Handler for F[src]

Loading content...