1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use super::AsyncData;
use super::AsyncFactoryComponent;
use std::fmt;
use crate::factory::FactoryView;
use crate::Sender;
pub(super) struct AsyncFactoryHandle<C: AsyncFactoryComponent> {
pub(super) data: AsyncData<C>,
pub(super) root_widget: C::Root,
pub(super) returned_widget: <C::ParentWidget as FactoryView>::ReturnedWidget,
pub(super) input: Sender<C::Input>,
pub(super) notifier: Sender<()>,
}
impl<C: AsyncFactoryComponent> fmt::Debug for AsyncFactoryHandle<C> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("FactoryHandle")
.field("data", &"<FactoryComponent>")
.field("root_widget", &self.root_widget)
.field("input", &self.input)
.field("notifier", &self.notifier)
.finish()
}
}