implement background message handler (worker)

This commit is contained in:
2022-05-22 13:27:53 +02:00
parent 6366932aca
commit 1487ad5bd3
11 changed files with 323 additions and 34 deletions

View File

@@ -1,4 +1,5 @@
use relm4::RelmComponent;
use relm4::RelmMsgHandler;
use relm4::Sender;
use self::{
@@ -6,6 +7,7 @@ use self::{
};
use super::app::model::AppModel;
use super::app::workers::AsyncHandler;
pub mod toolbox_apps;
pub mod toolbox_settings;
@@ -14,4 +16,5 @@ pub mod toolbox_settings;
pub struct AppComponents {
pub toolbox_settings_dialog: RelmComponent<ToolboxSettingsDialogModel, AppModel>,
pub toolbox_apps_dialog: RelmComponent<ToolboxAppDialogModel, AppModel>,
pub async_handler: RelmMsgHandler<AsyncHandler, AppModel>,
}