Function relm_state::init_component
[−]
[src]
pub fn init_component<UPDATE>(
stream: &EventStream<UPDATE::Msg>,
component: UPDATE,
executor: &Executor,
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.