Struct minidump::MinidumpModule[][src]

pub struct MinidumpModule {
    pub raw: MINIDUMP_MODULE,
    pub name: String,
    pub codeview_info: Option<CodeView>,
    pub misc_info: Option<IMAGE_DEBUG_MISC>,
}
Expand description

An executable or shared library loaded in the process at the time the Minidump was written.

Fields

raw: MINIDUMP_MODULE

The MINIDUMP_MODULE direct from the minidump file.

name: String

The module name. This is stored separately in the minidump.

codeview_info: Option<CodeView>

A CodeView record, if one is present.

misc_info: Option<IMAGE_DEBUG_MISC>

A misc debug record, if one is present.

Implementations

impl MinidumpModule[src]

pub fn new(base: u64, size: u32, name: &str) -> MinidumpModule[src]

Create a MinidumpModule with some basic info.

Useful for testing.

pub fn read(
    raw: MINIDUMP_MODULE,
    bytes: &[u8],
    endian: Endian
) -> Result<MinidumpModule, Error>
[src]

Read additional data to construct a MinidumpModule from bytes using the information from the module list in raw.

pub fn print<T: Write>(&self, f: &mut T) -> Result<()>[src]

Write a human-readable description of this MinidumpModule to f.

This is very verbose, it is the format used by minidump_dump.

Trait Implementations

impl Clone for MinidumpModule[src]

fn clone(&self) -> MinidumpModule[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for MinidumpModule[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Module for MinidumpModule[src]

fn base_address(&self) -> u64[src]

The base address of this code module as it was loaded by the process.

fn size(&self) -> u64[src]

The size of the code module.

fn code_file(&self) -> Cow<'_, str>[src]

The path or file name that the code module was loaded from.

fn code_identifier(&self) -> Cow<'_, str>[src]

An identifying string used to discriminate between multiple versions and builds of the same code module. This may contain a uuid, timestamp, version number, or any combination of this or other information, in an implementation-defined format. Read more

fn debug_file(&self) -> Option<Cow<'_, str>>[src]

The filename containing debugging information associated with the code module. If debugging information is stored in a file separate from the code module itself (as is the case when .pdb or .dSYM files are used), this will be different from code_file. If debugging information is stored in the code module itself (possibly prior to stripping), this will be the same as code_file. Read more

fn debug_identifier(&self) -> Option<Cow<'_, str>>[src]

An identifying string similar to code_identifier, but identifies a specific version and build of the associated debug file. This may be the same as code_identifier when the debug_file and code_file are identical or when the same identifier is used to identify distinct debug and code files. Read more

fn version(&self) -> Option<Cow<'_, str>>[src]

A human-readable representation of the code module’s version.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.