pub struct StepResult {
pub status: String,
pub state: VmState,
pub error: Option<MonacoDiagnostic>,
}Expand description
the result of step. read by the playground’s step-through after each
instruction.
derives serde::Serialize so the WASM bridge hands it straight to JS.
Fields§
§status: String"ran" when an ordinary instruction executed, "halted" when the VM
reached Halt, "error" on a runtime fault or when no program is
compiled. a plain string so the JavaScript side reads the discriminant
directly, without serde enum tagging.
state: VmStatethe VM state after the step (or the fault-point snapshot on an error).
error: Option<MonacoDiagnostic>the runtime-error diagnostic; Some when status is "error",
None otherwise.
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepResult
impl Debug for StepResult
Auto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnsafeUnpin for StepResult
impl UnwindSafe for StepResult
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