pub async fn run<E, M>( engine: Arc<E>, model: M, apply: impl FnMut(&mut M, ReplEvent), render: impl FnMut(&mut Frame<'_>, &M), ) -> Result<()>where E: TuiEngine + 'static, M: TuiModel,