pub enum State {
Running,
Called,
Waiting,
Halted,
}Available on crate feature
interpreter only.Expand description
Embive Interpreter State
Variants§
Running
Interpreter running. Call super::Interpreter::run to continue running.
Called
Interpreter was called (syscall). Optionally call super::Interpreter::syscall to handle the syscall and then super::Interpreter::run to continue running.
Waiting
Interpreter waiting interrupt. Optionally call super::Interpreter::interrupt to trigger an interrupt and then super::Interpreter::run to continue running.
Halted
Interpreter halted. Call super::Interpreter::reset and then super::Interpreter::run to run again.
Trait Implementations§
impl Copy for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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