pub fn start<M, Msg, Eff, UF, VF, EF>(
model: M,
update_fn: UF,
view_fn: VF,
effects_fn: EF,
) -> Result<(), Report>Expand description
Starts the runtime which manages all the internal processes and message passing.
The user needs to provide:
-
The initial model
-
An
updatefunction, responsible for updating the model based on messages. -
A
viewfunction, responsible for constructing the view from the model. -
An
effectsfunction responsible for handling side effects.