Executor

Trait Executor 

Source
pub trait Executor<Q, A>
where Q: RawState,
{ type Driver: Driver<Q, A>; // Required methods fn load(&mut self, program: Program<Q, A>); fn run(&mut self) -> Result<(), Error>; }
Expand description

The Executor trait defines the basis for compatible engines within the system.

Required Associated Types§

Source

type Driver: Driver<Q, A>

Required Methods§

Source

fn load(&mut self, program: Program<Q, A>)

Source

fn run(&mut self) -> Result<(), Error>

Implementors§

Source§

impl<D, Q, A> Executor<Q, A> for EngineBase<D, Q, A>
where D: Driver<Q, A>, Q: Halting + RawState, EngineBase<D, Q, A>: TryStep<Output = Head<Q, A>, Error = Error>,