intel_cache_lib/ic_module.rs
1use crate::ic_types::{ic_execute_mod::IcExecute,IcError,IcConnection};
2/// Trait used to create,load and execute module commands which gets parsed from `IcPacket`s.
3
4pub trait IcModule {
5 fn icm_load(&mut self);
6 fn icm_get_name(&self) -> &str;
7 fn icm_get_version(&self) -> &str;
8 fn icm_get_command(&self,cmd: Vec<String>) -> Result<Box<dyn IcExecute<Connection = IcConnection>>,IcError>;
9}