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
sourceimpl<'a> MinidumpThread<'a>
impl<'a> MinidumpThread<'a>
pub fn context(
&self,
system_info: &MinidumpSystemInfo,
misc: Option<&MinidumpMiscInfo>
) -> Option<Cow<'_, MinidumpContext>>
pub fn stack_memory(
&self,
memory_list: &MinidumpMemoryList<'a>
) -> Option<Cow<'_, MinidumpMemory<'a>>>
sourcepub fn print<T: Write>(
&self,
f: &mut T,
memory: Option<&MinidumpMemoryList<'a>>,
system: Option<&MinidumpSystemInfo>,
misc: Option<&MinidumpMiscInfo>
) -> Result<()>
pub fn print<T: Write>(
&self,
f: &mut T,
memory: Option<&MinidumpMemoryList<'a>>,
system: Option<&MinidumpSystemInfo>,
misc: Option<&MinidumpMiscInfo>
) -> 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: &MinidumpMemoryList<'_>
) -> Option<CrashReason>
pub fn last_error(
&self,
cpu: Cpu,
memory: &MinidumpMemoryList<'_>
) -> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more