Struct minidump::MinidumpMemoryList[][src]

pub struct MinidumpMemoryList<'a> { /* fields omitted */ }
Expand description

A list of memory regions included in a minidump.

Implementations

impl<'mdmp> MinidumpMemoryList<'mdmp>[src]

pub fn new() -> MinidumpMemoryList<'mdmp>[src]

Return an empty MinidumpMemoryList.

pub fn from_regions(
    regions: Vec<MinidumpMemory<'mdmp>>
) -> MinidumpMemoryList<'mdmp>
[src]

Create a MinidumpMemoryList from a list of MinidumpMemorys.

pub fn memory_at_address(&self, address: u64) -> Option<&MinidumpMemory<'mdmp>>[src]

Return a MinidumpMemory containing memory at address, if one exists.

pub fn iter<'slf>(&'slf self) -> MemoryRegions<'slf, 'mdmp>

Notable traits for MemoryRegions<'iter, 'data>

impl<'iter, 'data> Iterator for MemoryRegions<'iter, 'data> where
    'data: 'iter, 
type Item = &'iter MinidumpMemory<'data>;
[src]

Iterate over the memory regions in the order contained in the minidump.

The iterator returns items of MinidumpMemory as &'slf MinidumpMemory<'mdmp>. That is the lifetime of the item is bound to the lifetime of the iterator itself ('slf), while the slice inside MinidumpMemory pointing at the memory itself has the lifetime of the Minidump struct (’mdmp).

pub fn by_addr<'slf>(&'slf self) -> MemoryRegions<'slf, 'mdmp>

Notable traits for MemoryRegions<'iter, 'data>

impl<'iter, 'data> Iterator for MemoryRegions<'iter, 'data> where
    'data: 'iter, 
type Item = &'iter MinidumpMemory<'data>;
[src]

Iterate over the memory regions in order by memory address.

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

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

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

Trait Implementations

impl<'a> Debug for MinidumpMemoryList<'a>[src]

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

Formats the value using the given formatter. Read more

impl<'a> Default for MinidumpMemoryList<'a>[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<'a> MinidumpStream<'a> for MinidumpMemoryList<'a>[src]

const STREAM_TYPE: MINIDUMP_STREAM_TYPE[src]

The stream type constant used in the md::MDRawDirectory entry.

fn read(
    bytes: &'a [u8],
    all: &'a [u8],
    endian: Endian
) -> Result<MinidumpMemoryList<'a>, Error>
[src]

Read this MinidumpStream type from bytes. Read more

Auto Trait Implementations

impl<'a> RefUnwindSafe for MinidumpMemoryList<'a>

impl<'a> Send for MinidumpMemoryList<'a>

impl<'a> Sync for MinidumpMemoryList<'a>

impl<'a> Unpin for MinidumpMemoryList<'a>

impl<'a> UnwindSafe for MinidumpMemoryList<'a>

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, 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.