Struct minidump::MinidumpLinuxMaps
source · pub struct MinidumpLinuxMaps<'a> { /* private fields */ }
Expand description
The contents of /proc/self/maps
for the crashing process.
This is roughly equivalent in functionality to MinidumpMemoryInfoList
.
Use UnifiedMemoryInfoList
to handle the two uniformly.
Implementations§
source§impl<'mdmp> MinidumpLinuxMaps<'mdmp>
impl<'mdmp> MinidumpLinuxMaps<'mdmp>
sourcepub fn from_regions(regions: Vec<MinidumpLinuxMapInfo<'mdmp>>) -> Self
pub fn from_regions(regions: Vec<MinidumpLinuxMapInfo<'mdmp>>) -> Self
Create a MinidumpMemoryList
from a list of MinidumpMemory
s.
sourcepub fn memory_info_at_address(
&self,
address: u64
) -> Option<&MinidumpLinuxMapInfo<'mdmp>>
pub fn memory_info_at_address( &self, address: u64 ) -> Option<&MinidumpLinuxMapInfo<'mdmp>>
Return a MinidumpMemory
containing memory at address
, if one exists.
sourcepub fn iter<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpLinuxMapInfo<'mdmp>>
pub fn iter<'slf>( &'slf self ) -> impl Iterator<Item = &'slf MinidumpLinuxMapInfo<'mdmp>>
Iterate over the memory regions in the order contained in the minidump.
sourcepub fn by_addr<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpLinuxMapInfo<'mdmp>>
pub fn by_addr<'slf>( &'slf self ) -> impl Iterator<Item = &'slf MinidumpLinuxMapInfo<'mdmp>>
Iterate over the memory regions in order by memory address.
Trait Implementations§
source§impl<'a> Clone for MinidumpLinuxMaps<'a>
impl<'a> Clone for MinidumpLinuxMaps<'a>
source§fn clone(&self) -> MinidumpLinuxMaps<'a>
fn clone(&self) -> MinidumpLinuxMaps<'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 MinidumpLinuxMaps<'a>
impl<'a> Debug for MinidumpLinuxMaps<'a>
source§impl<'a> Default for MinidumpLinuxMaps<'a>
impl<'a> Default for MinidumpLinuxMaps<'a>
source§impl<'a> MinidumpStream<'a> for MinidumpLinuxMaps<'a>
impl<'a> MinidumpStream<'a> for MinidumpLinuxMaps<'a>
source§const STREAM_TYPE: u32 = 1_197_932_553u32
const STREAM_TYPE: u32 = 1_197_932_553u32
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 MinidumpLinuxMaps<'a>
impl<'a> Send for MinidumpLinuxMaps<'a>
impl<'a> Sync for MinidumpLinuxMaps<'a>
impl<'a> Unpin for MinidumpLinuxMaps<'a>
impl<'a> UnwindSafe for MinidumpLinuxMaps<'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