pub trait IComponentProcess<TConfig, TMsg>where
TMsg: MsgDataBound,{
// Required method
fn process<'life0, 'async_trait>(
&'life0 self,
config: TConfig,
in_out: CmpInOut<TMsg>,
) -> Pin<Box<dyn Future<Output = CmpResult> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Трейт основной функции компонента
Каждый компонент должен определить данный трейт
Required Methods§
Implementors§
impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>where
TMsg: MsgDataBound + 'static,
Компонент для добавления сообщений из побочного потока