pub struct SnapshotFrame {
pub parent: usize,
pub func_name: *const u8,
pub func_name_len: u32,
pub locals: Vec<DebugLocal>,
pub source_span: (u32, u32),
}Expand description
A deep copy of one debug frame + its locals, stable across the fault unwind.
The value GcRefs point at the same non-moving objects the live frame did.
Fields§
§parent: usizeThe caller’s index in CrashSnapshot::frames, or usize::MAX for the
outermost frame.
func_name: *const u8The function name (copied from the live frame’s 'static name pointer;
safe to keep as a raw pointer since the compiler embedded it 'static).
func_name_len: u32§locals: Vec<DebugLocal>The copied locals. value fields are the GC roots.
source_span: (u32, u32)The function’s source span [start, end) byte offsets (§9.3). Copied
from the live frame; (0, 0) means “unknown”. The source REPL command
renders it.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SnapshotFrame
impl !Send for SnapshotFrame
impl !Sync for SnapshotFrame
impl !UnwindSafe for SnapshotFrame
impl Freeze for SnapshotFrame
impl Unpin for SnapshotFrame
impl UnsafeUnpin for SnapshotFrame
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