Function relm::run [] [src]

pub fn run<WIDGET>(model_param: WIDGET::ModelParam) -> Result<(), ()> where
    WIDGET: Widget + 'static,
    WIDGET::Model: Clone + Send,
    WIDGET::ModelParam: Default,
    WIDGET::Msg: Send

Create the specified relm Widget and run the main event loops.

/// `Win` is a relm `Widget`.
Win::run(()).unwrap();