pub struct MinidumpModule {
    pub raw: MINIDUMP_MODULE,
    pub name: String,
    pub codeview_info: Option<CodeView>,
    pub misc_info: Option<IMAGE_DEBUG_MISC>,
    /* private fields */
}
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§

source§

impl MinidumpModule

source

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

Create a MinidumpModule with some basic info.

Useful for testing.

source

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

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

source

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

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

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

Trait Implementations§

source§

impl Clone for MinidumpModule

source§

fn clone(&self) -> MinidumpModule

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MinidumpModule

source§

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

Formats the value using the given formatter. Read more
source§

impl Module for MinidumpModule

source§

fn base_address(&self) -> u64

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

fn size(&self) -> u64

The size of the code module.
source§

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

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

fn code_identifier(&self) -> Option<CodeId>

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.
source§

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

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.
source§

fn debug_identifier(&self) -> Option<DebugId>

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.
source§

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

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more