rsiot/components/cmp_os_process/
config.rs

1use crate::message::{Message, MsgDataBound};
2
3/// Конфигурация компонента cmp_os_process
4#[derive(Clone)]
5pub struct Config<TMsg>
6where
7    TMsg: MsgDataBound,
8{
9    /// # Пример
10    ///
11    /// ```rust
12    /// fn_input: |_| None
13    /// ```
14    pub fn_input: fn(Message<TMsg>) -> Option<String>,
15
16    /// # Пример
17    ///
18    /// ```rust
19    /// fn_output: |_| vec![]
20    /// ```
21    pub fn_output: fn(String) -> Vec<Message<TMsg>>,
22}