pub trait IComponent<TMessage>
where TMessage: IMessage,
{ // Required methods fn set_interface( &mut self, input: ComponentInput<TMessage>, output: ComponentOutput<TMessage>, cache: Cache<TMessage> ); fn spawn<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ComponentError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }

Required Methods§

source

fn set_interface( &mut self, input: ComponentInput<TMessage>, output: ComponentOutput<TMessage>, cache: Cache<TMessage> )

source

fn spawn<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ComponentError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<TConfig, TMessage> IComponent<TMessage> for Component<TConfig, TMessage>
where TMessage: IMessage, Self: IComponentProcess<TConfig, TMessage>, TConfig: Send,