[][src]Trait sauron::Dispatch

pub trait Dispatch<MSG> {
    fn dispatch(self: &Rc<Self>, msg: MSG);
}

This trait is used in the DomUpdater to call the dispatch method when an event occured

The Program will implement Dispatch instead of sending it to the DomUpdater, this will simplify the amount of generics being defined.

Required methods

fn dispatch(self: &Rc<Self>, msg: MSG)

Loading content...

Implementors

impl<APP, MSG> Dispatch<MSG> for Program<APP, MSG> where
    MSG: 'static,
    APP: Component<MSG> + 'static, 
[src]

This will be called when the actual event is triggered. Defined in the DomUpdater::create_closure_wrap function

Loading content...