Struct minidump::Minidump[][src]

pub struct Minidump<'a, T> where
    T: Deref<Target = [u8]> + 'a, 
{ pub header: MINIDUMP_HEADER, pub endian: Endian, // some fields omitted }
Expand description

An index into the contents of a minidump.

The Minidump struct represents the parsed header and indices contained at the start of a minidump file. It can be instantiated by calling the Minidump::read or Minidump::read_path methods.

Examples

use minidump::Minidump;

let dump = Minidump::read_path("../testdata/test.dmp")?;

Fields

header: MINIDUMP_HEADER

The raw minidump header from the file.

endian: Endian

The endianness of this minidump file.

Implementations

Read a Minidump from a Path to a file on disk.

See the type definition for an example.

Read a Minidump from the provided data.

Typically this will be a Vec<u8> or &[u8] with the full contents of the minidump, but you can also use something like memmap::Mmap.

Get a known stream of data from the minidump.

For streams known to this module whose types implement the MinidumpStream trait, this method allows reading the stream data as a specific type.

Note that the lifetime of the returned stream is bound to the lifetime of the this Minidump struct itself and not to the lifetime of the data backing this minidump. This is a consequence of how this struct relies on Deref to access the data.

Get a stream of raw data from the minidump.

This can be used to get the contents of arbitrary minidump streams. For streams of known types you almost certainly want to use get_stream instead.

Note that the lifetime of the returned stream is bound to the lifetime of the this Minidump struct itself and not to the lifetime of the data backing this minidump. This is a consequence of how this struct relies on Deref to access the data.

Write a verbose description of the Minidump to f.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.