Struct minidump::MinidumpMemoryInfoList
source · pub struct MinidumpMemoryInfoList<'a> { /* private fields */ }
Implementations§
source§impl<'mdmp> MinidumpMemoryInfoList<'mdmp>
impl<'mdmp> MinidumpMemoryInfoList<'mdmp>
sourcepub fn new() -> MinidumpMemoryInfoList<'mdmp>
pub fn new() -> MinidumpMemoryInfoList<'mdmp>
Return an empty MinidumpMemoryList
.
sourcepub fn from_regions(
regions: Vec<MinidumpMemoryInfo<'mdmp>>
) -> MinidumpMemoryInfoList<'mdmp>
pub fn from_regions( regions: Vec<MinidumpMemoryInfo<'mdmp>> ) -> MinidumpMemoryInfoList<'mdmp>
Create a MinidumpMemoryList
from a list of MinidumpMemory
s.
sourcepub fn memory_info_at_address(
&self,
address: u64
) -> Option<&MinidumpMemoryInfo<'mdmp>>
pub fn memory_info_at_address( &self, address: u64 ) -> Option<&MinidumpMemoryInfo<'mdmp>>
Return a MinidumpMemory
containing memory at address
, if one exists.
sourcepub fn iter<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpMemoryInfo<'mdmp>>
pub fn iter<'slf>( &'slf self ) -> impl Iterator<Item = &'slf MinidumpMemoryInfo<'mdmp>>
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).
sourcepub fn by_addr<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpMemoryInfo<'mdmp>>
pub fn by_addr<'slf>( &'slf self ) -> impl Iterator<Item = &'slf MinidumpMemoryInfo<'mdmp>>
Iterate over the memory regions in order by memory address.
Trait Implementations§
source§impl<'a> Clone for MinidumpMemoryInfoList<'a>
impl<'a> Clone for MinidumpMemoryInfoList<'a>
source§fn clone(&self) -> MinidumpMemoryInfoList<'a>
fn clone(&self) -> MinidumpMemoryInfoList<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for MinidumpMemoryInfoList<'a>
impl<'a> Debug for MinidumpMemoryInfoList<'a>
source§impl<'a> Default for MinidumpMemoryInfoList<'a>
impl<'a> Default for MinidumpMemoryInfoList<'a>
source§impl<'a> MinidumpStream<'a> for MinidumpMemoryInfoList<'a>
impl<'a> MinidumpStream<'a> for MinidumpMemoryInfoList<'a>
source§const STREAM_TYPE: u32 = 16u32
const STREAM_TYPE: u32 = 16u32
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.Auto Trait Implementations§
impl<'a> RefUnwindSafe for MinidumpMemoryInfoList<'a>
impl<'a> Send for MinidumpMemoryInfoList<'a>
impl<'a> Sync for MinidumpMemoryInfoList<'a>
impl<'a> Unpin for MinidumpMemoryInfoList<'a>
impl<'a> UnwindSafe for MinidumpMemoryInfoList<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more