Function relm::run[][src]

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

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

/// `Win` is a relm `Widget`.
Win::run(()).expect("Win::run failed");