Function gemgui::application

source ·
pub fn application<CB, Fut>(
    filemap: Filemap,
    index_html: &str,
    port: u16,
    application_cb: CB
) -> Result<()>where
    CB: FnMut(UiRef) -> Fut + Send + Clone + 'static,
    Fut: Future<Output = ()> + Send + 'static,
Expand description

Convenience to create an default UI application

Arguments

filemap- resources

index_html- UI document

port - port used to connect in this application session

application_cb: Callback called when UI is ready

Return

Application exit result