rsiot::components::cmp_derive

Type Alias Cmp

Source
pub type Cmp<TMsg, TService> = Component<Config<TMsg>, TMsg, TService>;
Expand description

Компонент cmp_derive

Aliased Type§

struct Cmp<TMsg, TService> { /* private fields */ }

Implementations

Source§

impl<TConfig, TMsg, TService> Component<TConfig, TMsg, TService>
where TMsg: MsgDataBound, TService: ServiceBound,

Source

pub fn new(config: impl Into<TConfig>) -> Self

Создание компонента

Trait Implementations

Source§

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

Source§

fn process<'life0, 'async_trait>( &'life0 self, config: Config<TMsg>, in_out: CmpInOut<TMsg, TService>, ) -> Pin<Box<dyn Future<Output = Result<(), ComponentError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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