pub struct DebugSnapshot {
pub status: &'static str,
pub current_location: Option<String>,
pub turn_index: u32,
pub globals: Vec<DebugGlobal>,
pub call_stack: Vec<DebugFrame>,
pub visit_counts: Vec<DebugVisit>,
pub pending_choices: Vec<DebugChoice>,
pub rng: DebugRng,
}Expand description
A structured, read-only snapshot of the runtime’s current state.
Fields§
§status: &'static strExecution status: active / waiting_for_choice / done / ended.
current_location: Option<String>Nearest named knot/stitch the cursor is currently in, if resolvable.
turn_index: u32Current turn index.
globals: Vec<DebugGlobal>Global variables and their current values (display strings).
call_stack: Vec<DebugFrame>Active call frames, innermost (current) first.
visit_counts: Vec<DebugVisit>Per-knot/stitch visit counts, sorted by path.
pending_choices: Vec<DebugChoice>Choices currently offered to the player.
rng: DebugRngStory RNG state.
Auto Trait Implementations§
impl Freeze for DebugSnapshot
impl RefUnwindSafe for DebugSnapshot
impl Send for DebugSnapshot
impl Sync for DebugSnapshot
impl Unpin for DebugSnapshot
impl UnsafeUnpin for DebugSnapshot
impl UnwindSafe for DebugSnapshot
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