Function relm::run [] [src]

pub fn run<WIDGET>(model_param: WIDGET::ModelParam) -> Result<(), ()> where
    WIDGET: Widget + 'static, 

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

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