[−][src]Struct minidump::MinidumpException
Information about the exception that caused the minidump to be generated.
MinidumpException
wraps MINIDUMP_EXCEPTION_STREAM
, which contains information
about the exception that caused the minidump to be generated, if the
minidump was generated in an exception handler called as a result of an
exception. It also provides access to a MinidumpContext
object, which
contains the CPU context for the exception thread at the time the exception
occurred.
Fields
raw: MINIDUMP_EXCEPTION_STREAM
The raw exception information from the minidump stream.
thread_id: u32
The thread that encountered this exception.
context: Option<MinidumpContext>
If present, the CPU context from the time the thread encountered the exception.
This should be used in place of the context contained within the thread with id
thread_id
, since it points to the code location where the exception happened,
without any exception handling routines that are likely to be on the stack after
that point.
Implementations
impl MinidumpException
[src]
pub fn get_crash_address(&self, os: Os) -> u64
[src]
Get the crash address for an exception.
pub fn get_crash_reason(&self, os: Os) -> CrashReason
[src]
Get the crash reason for an exception.
pub fn print<T: Write>(&self, f: &mut T) -> Result<()>
[src]
Write a human-readable description of this MinidumpException
to f
.
This is very verbose, it is the format used by minidump_dump
.
Trait Implementations
impl<'a> MinidumpStream<'a> for MinidumpException
[src]
const STREAM_TYPE: MINIDUMP_STREAM_TYPE
[src]
fn read(
bytes: &'a [u8],
all: &'a [u8],
endian: Endian
) -> Result<MinidumpException, Error>
[src]
bytes: &'a [u8],
all: &'a [u8],
endian: Endian
) -> Result<MinidumpException, Error>
Auto Trait Implementations
impl RefUnwindSafe for MinidumpException
impl Send for MinidumpException
impl Sync for MinidumpException
impl Unpin for MinidumpException
impl UnwindSafe for MinidumpException
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,