relm4/component/sync/
mod.rs1mod builder;
6mod connector;
7mod controller;
8mod state_watcher;
9mod stream;
10mod traits;
11
12pub use builder::ComponentBuilder;
13pub use connector::Connector;
14pub use controller::{ComponentController, Controller};
15pub use state_watcher::StateWatcher;
16pub use stream::ComponentStream;
17pub use traits::{Component, SimpleComponent};
18
19use std::future::Future;
20use std::pin::Pin;
21
22pub type CommandFuture = Pin<Box<dyn Future<Output = ()> + Send>>;
24
25#[derive(Debug)]
27pub struct ComponentParts<C: Component> {
28 pub model: C,
30 pub widgets: C::Widgets,
32}