pub struct CallStack {
pub frames: Vec<StackFrame>,
pub info: CallStackInfo,
pub thread_id: u32,
pub thread_name: Option<String>,
pub last_error_value: Option<CrashReason>,
}
Expand description
A stack of StackFrame
s produced as a result of unwinding a thread.
Fields§
§frames: Vec<StackFrame>
The stack frames. By convention, the stack frame at index 0 is the innermost callee frame, and the frame at the highest index in a call stack is the outermost caller.
info: CallStackInfo
Information about this CallStack
.
thread_id: u32
The identifier of the thread.
thread_name: Option<String>
The name of the thread, if known.
last_error_value: Option<CrashReason>
The GetLastError() value stored in the TEB.
Implementations§
Source§impl CallStack
impl CallStack
Sourcepub fn with_context(context: MinidumpContext) -> Self
pub fn with_context(context: MinidumpContext) -> Self
Construct a CallStack that just has the unsymbolicated context frame.
This is the desired input for the stack walker.
Sourcepub fn with_info(id: u32, info: CallStackInfo) -> CallStack
pub fn with_info(id: u32, info: CallStackInfo) -> CallStack
Create a CallStack
with info
and no frames.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallStack
impl RefUnwindSafe for CallStack
impl Send for CallStack
impl Sync for CallStack
impl Unpin for CallStack
impl UnwindSafe for CallStack
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