Skip to main content

IComponentProcess

Trait IComponentProcess 

Source
pub trait IComponentProcess<TConfig, TMsg>
where TMsg: MsgDataBound,
{ // Required method fn process<'life0, 'async_trait>( &'life0 self, config: TConfig, in_out: MsgBusLinker<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: MsgBusLinker<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,

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

Source§

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

Source§

impl<TMsg, TFnSingle> IComponentProcess<Config<TMsg, TFnSingle>, TMsg> for Component<Config<TMsg, TFnSingle>, TMsg>
where TMsg: MsgDataBound + 'static, TFnSingle: FnOnce() -> Vec<TMsg> + Send + Sync,