[][src]Function relm_state::init_component

pub fn init_component<UPDATE>(
    stream: &EventStream<UPDATE::Msg>,
    component: UPDATE,
    relm: &Relm<UPDATE>
) where
    UPDATE: Update + 'static,
    UPDATE::Msg: DisplayVariant + 'static, 

Initialize a component by creating its subscriptions and dispatching the messages from the stream.