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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".