Skip to main content

run

Function run 

Source
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,