pub trait IcModule {
// Required methods
fn icm_load(&mut self);
fn icm_get_name(&self) -> &str;
fn icm_get_version(&self) -> &str;
fn icm_get_command(
&self,
cmd: Vec<String>,
) -> Result<Box<dyn IcExecute<Connection = IcConnection>>, IcError>;
}
Expand description
Trait used to create,load and execute module commands which gets parsed from IcPacket
s.