use relm4::{ component::{AsyncComponent, AsyncComponentParts, AsyncComponentSender}, gtk, }; struct App; #[relm4::component(pub async)] impl AsyncComponent for App { type Init = (); type Input = (); type Output = (); type CommandOutput = (); view! { gtk::Window {} } // Initialize the component. async fn init( _init: Self::Init, root: Self::Root, _sender: AsyncComponentSender, ) -> AsyncComponentParts { let model = Self; let widgets = view_output!(); AsyncComponentParts { model, widgets } } async fn update( &mut self, _msg: Self::Input, _sender: AsyncComponentSender, _root: &Self::Root, ) { } }