Trait IcModule

Source
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 IcPackets.

Required Methods§

Source

fn icm_load(&mut self)

Source

fn icm_get_name(&self) -> &str

Source

fn icm_get_version(&self) -> &str

Source

fn icm_get_command( &self, cmd: Vec<String>, ) -> Result<Box<dyn IcExecute<Connection = IcConnection>>, IcError>

Implementors§