pub struct RunResult {
pub ok: bool,
pub state: VmState,
pub error: Option<MonacoDiagnostic>,
}Expand description
the result of run. read by the playground’s stack, variables, and
console panels (the state) and its editor (the runtime-error underline).
derives serde::Serialize so the WASM bridge hands it straight to JS.
Fields§
§ok: booltrue when the program ran to Halt, false on a runtime error or when
no program is compiled.
state: VmStatethe VM state at the stopping point – on a runtime error this is the fault-point snapshot, so the playground can show the stack and console where execution stopped.
error: Option<MonacoDiagnostic>the runtime-error diagnostic; Some on a fault, None otherwise.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
impl UnwindSafe for RunResult
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