Skip to main content

GeneratedComponent

Trait GeneratedComponent 

Source
pub trait GeneratedComponent {
    type Instruction;
    type Message;
    type Effect;

    // Required method
    fn execute_generated(
        &mut self,
        inst: &Self::Instruction,
        msg: Self::Message,
    ) -> Result<Effects<Self::Effect>>;
}

Required Associated Types§

Required Methods§

Source

fn execute_generated( &mut self, inst: &Self::Instruction, msg: Self::Message, ) -> Result<Effects<Self::Effect>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§