Type Alias minidump::MinidumpMemoryList
source · pub type MinidumpMemoryList<'a> = MinidumpMemoryListBase<'a, MINIDUMP_MEMORY_DESCRIPTOR>;
Expand description
A list of memory regions included in a minidump.
Aliased Type§
struct MinidumpMemoryList<'a> { /* private fields */ }
Implementations§
source§impl<'mdmp> MinidumpMemoryList<'mdmp>
impl<'mdmp> MinidumpMemoryList<'mdmp>
source§impl<'mdmp, Descriptor> MinidumpMemoryListBase<'mdmp, Descriptor>
impl<'mdmp, Descriptor> MinidumpMemoryListBase<'mdmp, Descriptor>
sourcepub fn new() -> MinidumpMemoryListBase<'mdmp, Descriptor>
pub fn new() -> MinidumpMemoryListBase<'mdmp, Descriptor>
Return an empty MinidumpMemoryListBase
.
sourcepub fn from_regions(
regions: Vec<MinidumpMemoryBase<'mdmp, Descriptor>>
) -> MinidumpMemoryListBase<'mdmp, Descriptor>
pub fn from_regions( regions: Vec<MinidumpMemoryBase<'mdmp, Descriptor>> ) -> MinidumpMemoryListBase<'mdmp, Descriptor>
Create a MinidumpMemoryListBase
from a list of MinidumpMemoryBase
s.
sourcepub fn memory_at_address(
&self,
address: u64
) -> Option<&MinidumpMemoryBase<'mdmp, Descriptor>>
pub fn memory_at_address( &self, address: u64 ) -> Option<&MinidumpMemoryBase<'mdmp, Descriptor>>
Return a MinidumpMemoryBase
containing memory at address
, if one exists.
sourcepub fn iter<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>
pub fn iter<'slf>( &'slf self ) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>
Iterate over the memory regions in the order contained in the minidump.
The iterator returns items of MinidumpMemoryBase as &'slf MinidumpMemoryBase<'mdmp, Descriptor>
.
That is the lifetime of the item is bound to the lifetime of the iterator itself
('slf
), while the slice inside MinidumpMemoryBase pointing at the memory itself has
the lifetime of the Minidump struct (’mdmp).
sourcepub fn by_addr<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>
pub fn by_addr<'slf>( &'slf self ) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>
Iterate over the memory regions in order by memory address.
Trait Implementations§
source§impl<'a, Descriptor: Debug> Debug for MinidumpMemoryListBase<'a, Descriptor>
impl<'a, Descriptor: Debug> Debug for MinidumpMemoryListBase<'a, Descriptor>
source§impl<'a, Descriptor> Default for MinidumpMemoryListBase<'a, Descriptor>
impl<'a, Descriptor> Default for MinidumpMemoryListBase<'a, Descriptor>
source§impl<'a> MinidumpStream<'a> for MinidumpMemoryList<'a>
impl<'a> MinidumpStream<'a> for MinidumpMemoryList<'a>
source§const STREAM_TYPE: u32 = 5u32
const STREAM_TYPE: u32 = 5u32
The stream type constant used in the
md::MDRawDirectory
entry.
This is usually a MINIDUMP_STREAM_TYPE but it’s left as a u32
to allow external projects to add support for their own custom streams.