pub struct WasmState {
pub id: String,
pub demo_type: String,
pub step: u64,
pub seed: u64,
pub paused: bool,
pub complete: bool,
pub state_json: String,
pub criteria: Vec<CriterionResultJson>,
}Expand description
JSON-serializable state for cross-boundary transfer.
Used to send state from Rust to JavaScript.
Fields§
§id: StringDemo ID.
demo_type: StringDemo type (e.g., “orbit”, “tsp”).
step: u64Current step number.
seed: u64Seed for reproducibility.
paused: boolWhether demo is paused.
complete: boolWhether demo is complete.
state_json: StringEngine-specific state as JSON.
criteria: Vec<CriterionResultJson>Falsification criteria results.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmState
impl RefUnwindSafe for WasmState
impl Send for WasmState
impl Sync for WasmState
impl Unpin for WasmState
impl UnsafeUnpin for WasmState
impl UnwindSafe for WasmState
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