| 36 | pub trait Instruction { |
| 37 | fn command_name(&self) -> &'static str; |
| 38 | fn start(&self, params: Vec<String>) -> Result<Box<dyn InstructionLineHandler>, ProcessorError>; |
| 39 | fn needs_closing(&self) -> bool { |
| 40 | false |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | pub trait InstructionLineHandler { |
| 45 | fn handle_line(&self, line: &str) -> Result<(), ProcessorError>; |
| 46 | } |
| 47 |
no outgoing calls
no test coverage detected