pub struct Executor { /* private fields */ }Expand description
Initialize with Default::default or new_with_loaded if you have already loaded data, load plugins and programs through load_plugin and
load_program, start execution with start_execution, execute step-by-step with execute_step (will advance automatically)
Implementations§
Source§impl Executor
impl Executor
pub fn execute_step(&mut self)
pub fn load_program(&mut self, program: Program, path: ModulePath)
pub fn load_programs(&mut self, programs: ProgramCollection)
pub fn load_plugin(&mut self, plugin: impl Plugin)
pub fn start_execution(&mut self, auto: bool)
pub fn resume_auto(&mut self)
pub fn resume_until(&mut self, node: AbsoluteNodeId)
pub fn new_with_loaded(loaded: LoadedProgramData) -> Self
pub fn set_variable(&mut self, name: &str, val: Rc<dyn Object>)
pub fn get_variable(&self, name: &str) -> Option<Rc<dyn Object>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl !RefUnwindSafe for Executor
impl !Send for Executor
impl !Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more