Trait sota::interpreter::Interpreter
[−]
[src]
pub trait Interpreter<I, O> { fn interpret(&mut self, input: I, otx: &Sender<O>); fn run(&mut self, irx: Receiver<I>, otx: Sender<O>, wg: WaitGroup) { ... } }
An Interpreter
loops over any incoming values, on receipt of which it
delegates to the interpret
function which will respond with output values.
Required Methods
fn interpret(&mut self, input: I, otx: &Sender<O>)
Provided Methods
fn run(&mut self, irx: Receiver<I>, otx: Sender<O>, wg: WaitGroup)
Implementors
impl Interpreter<Event, Command> for EventInterpreter
impl Interpreter<Command, Interpret> for CommandInterpreter
impl<'t> Interpreter<Interpret, Event> for GlobalInterpreter<'t>