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<TMessage> IComponentProcess<Config<TMessage>, TMessage> for Component<Config<TMessage>, TMessage>
where TMessage: MsgDataBound + 'static,

Source§

impl<TMessage, TServerToClient, TClientToServer> IComponentProcess<Config<TMessage, TServerToClient, TClientToServer>, TMessage> for Component<Config<TMessage, TServerToClient, TClientToServer>, TMessage>
where TMessage: MsgDataBound + 'static, TServerToClient: 'static + WebsocketMessage, TClientToServer: 'static + WebsocketMessage,

Source§

impl<TMessage, TServerToClient, TClientToServer> IComponentProcess<Config<TMessage, TServerToClient, TClientToServer>, TMessage> for Component<Config<TMessage, TServerToClient, TClientToServer>, TMessage>
where TMessage: MsgDataBound + 'static, TServerToClient: 'static + WebsocketMessage, TClientToServer: 'static + WebsocketMessage,

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> for Component<Config, 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 + '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 + '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 + 'static,

Source§

impl<TMsg, I, Q, S> IComponentProcess<Config<TMsg, I, Q, S>, TMsg> for Component<Config<TMsg, I, Q, S>, TMsg>
where TMsg: MsgDataBound + '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, TBuffer> IComponentProcess<Config<TMsg, TBuffer>, TMsg> for Component<Config<TMsg, TBuffer>, TMsg>
where TMsg: MsgDataBound + 'static, TBuffer: BufferBound,

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,