[][src]Struct minidump::MinidumpException

pub struct MinidumpException {
    pub raw: MINIDUMP_EXCEPTION_STREAM,
    pub thread_id: u32,
    pub context: Option<MinidumpContext>,
}

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.