Trait Instruction

Source
pub trait Instruction {
    // Required methods
    fn command_name(&self) -> &'static str;
    fn start(
        &self,
        params: Vec<String>,
    ) -> Result<Box<dyn InstructionLineHandler>, ProcessorError>;

    // Provided method
    fn needs_closing(&self) -> bool { ... }
}

Required Methods§

Source

fn command_name(&self) -> &'static str

Source

fn start( &self, params: Vec<String>, ) -> Result<Box<dyn InstructionLineHandler>, ProcessorError>

Provided Methods§

Implementors§