rsiot::executor

Trait IComponentProcess

Source
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> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }
Expand description

Трейт основной функции компонента

Каждый компонент должен определить данный трейт

Required Methods§

Source

fn process<'life0, 'async_trait>( &'life0 self, config: TConfig, in_out: CmpInOut<TMsg>, ) -> Pin<Box<dyn Future<Output = CmpResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Основная функция компонента

Implementors§

Source§

impl<TMainWindow, TMsg> IComponentProcess<Config<TMsg, TMainWindow>, TMsg> for Component<Config<TMsg, TMainWindow>, TMsg>
where TMsg: MsgDataBound + 'static, Self: Sync, TMainWindow: ComponentHandle + 'static,

Source§

impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>
where TMsg: MsgDataBound + 'static,

Компонент для добавления сообщений из побочного потока

Source§

impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>
where TMsg: MsgDataBound + 'static,

Source§

impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>
where TMsg: MsgDataBound + 'static,

Source§

impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>
where TMsg: MsgDataBound + 'static,

Source§

impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>
where TMsg: MsgDataBound,

Source§

impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>
where TMsg: MsgDataBound + 'static,

Source§

impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>
where TMsg: MsgDataBound,

Source§

impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>
where TMsg: MsgDataBound + 'static,

Source§

impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>
where TMsg: MsgDataBound + 'static,

Source§

impl<TMsg, TFnPeriodic> IComponentProcess<Config<TMsg, TFnPeriodic>, TMsg> for Component<Config<TMsg, TFnPeriodic>, TMsg>
where TMsg: MsgDataBound, TFnPeriodic: FnMut() -> Vec<Message<TMsg>> + Send + Sync,