MCPcopy Index your code
hub / github.com/eventuallyconsultant/codegenr / Instruction

Interface Instruction

codegenr/src/processor/mod.rs:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36pub 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
44pub trait InstructionLineHandler {
45 fn handle_line(&self, line: &str) -> Result<(), ProcessorError>;
46}
47

Callers 1

processFunction · 0.45

Implementers 3

console.rscodegenr/src/processor/console.rs
clean.rscodegenr/src/processor/clean.rs
file.rscodegenr/src/processor/file.rs

Calls

no outgoing calls

Tested by

no test coverage detected