Struct minidump::MinidumpThread
source · pub struct MinidumpThread<'a> {
pub raw: MINIDUMP_THREAD,
/* private fields */
}
Expand description
The state of a thread from the process when the minidump was written.
Fields§
§raw: MINIDUMP_THREAD
The MINIDUMP_THREAD
direct from the minidump file.
Implementations§
source§impl<'a> MinidumpThread<'a>
impl<'a> MinidumpThread<'a>
pub fn context( &self, system_info: &MinidumpSystemInfo, misc: Option<&MinidumpMiscInfo> ) -> Option<Cow<'_, MinidumpContext>>
pub fn stack_memory<'mem>( &'mem self, memory_list: &'mem UnifiedMemoryList<'a> ) -> Option<UnifiedMemory<'mem, 'a>>
sourcepub fn print<T: Write>(
&self,
f: &mut T,
memory: Option<&UnifiedMemoryList<'a>>,
system: Option<&MinidumpSystemInfo>,
misc: Option<&MinidumpMiscInfo>,
brief: bool
) -> Result<()>
pub fn print<T: Write>( &self, f: &mut T, memory: Option<&UnifiedMemoryList<'a>>, system: Option<&MinidumpSystemInfo>, misc: Option<&MinidumpMiscInfo>, brief: bool ) -> Result<()>
Write a human-readable description of this MinidumpThread
to f
.
This is very verbose, it is the format used by minidump_dump
.
sourcepub fn last_error(
&self,
cpu: Cpu,
memory: &UnifiedMemoryList<'_>
) -> Option<CrashReason>
pub fn last_error( &self, cpu: Cpu, memory: &UnifiedMemoryList<'_> ) -> Option<CrashReason>
Gets the last error code the thread recorded, just like win32’s GetLastError.
The value is heuristically converted into a CrashReason because that’s our general error code handling machinery, even though this may not actually be the reason for the crash!
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MinidumpThread<'a>
impl<'a> Send for MinidumpThread<'a>
impl<'a> Sync for MinidumpThread<'a>
impl<'a> Unpin for MinidumpThread<'a>
impl<'a> UnwindSafe for MinidumpThread<'a>
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