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>,
brief: bool
) -> Result<()>
pub fn print<T: Write>(
&self,
f: &mut T,
memory: Option<&MinidumpMemoryList<'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: &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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more