rsiot/components/cmp_os_process/
config.rs1use crate::message::MsgDataBound;
2
3#[derive(Clone)]
5pub struct Config<TMsg>
6where
7 TMsg: MsgDataBound,
8{
9 pub commands: Vec<ConfigCommand<TMsg>>,
11}
12
13#[derive(Clone)]
15pub struct ConfigCommand<TMsg>
16where
17 TMsg: MsgDataBound,
18{
19 pub fn_input: fn(&TMsg) -> Option<Vec<String>>,
21
22 pub fn_output: fn(&[ExecResult]) -> Option<Vec<TMsg>>,
24}
25
26pub struct ExecResult {
28 pub status: String,
30
31 pub stdout: String,
33
34 pub stderr: String,
36}