rsiot::executor

Trait IComponentProcess

Source
pub trait IComponentProcess<TConfig, TMsg, TService>
where TMsg: MsgDataBound, TService: ServiceBound,
{ // Required method fn process<'life0, 'async_trait>( &'life0 self, config: TConfig, in_out: CmpInOut<TMsg, TService>, ) -> Pin<Box<dyn Future<Output = CmpResult> + '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, TService>, ) -> Pin<Box<dyn Future<Output = CmpResult> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Implementors§

Source§

impl<TMessage, TService> IComponentProcess<Config<TMessage>, TMessage, TService> for Component<Config<TMessage>, TMessage, TService>
where TMessage: MsgDataBound + 'static, TService: ServiceBound + 'static,

Source§

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

Source§

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

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<TMsg, TService, I, Q, S> IComponentProcess<Config<TMsg, I, Q, S>, TMsg, TService> for Component<Config<TMsg, I, Q, S>, TMsg, TService>
where TMsg: MsgDataBound + 'static, TService: ServiceBound + 'static, I: Clone + Default + Send + Serialize + 'static + Sync, Q: Clone + Default + Send + Serialize + 'static + Sync, S: Clone + Default + Send + Serialize + 'static + Sync, FunctionBlockBase<I, Q, S>: IFunctionBlock<I, Q, S>,

Source§

impl<TMsg, TView, TIntoView, TService, TInputStore, TOutputStore> IComponentProcess<Config<TMsg, TView, TIntoView, TInputStore, TOutputStore>, TMsg, TService> for Component<Config<TMsg, TView, TIntoView, TInputStore, TOutputStore>, TMsg, TService>
where TMsg: MsgDataBound + 'static, TView: Fn() -> TIntoView + 'static, TIntoView: IntoView, TService: ServiceBound + 'static, TInputStore: StoreBound + 'static, TOutputStore: StoreBound + 'static,