Trait rsiot_component_core::IComponent
source · pub trait IComponent<TMessage> {
// Required methods
fn set_interface(
&mut self,
input: CmpInput<TMessage>,
output: CmpOutput<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;
}