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
sourceimpl<'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
sourceimpl<'a> Clone for MinidumpLinuxMaps<'a>
impl<'a> Clone for MinidumpLinuxMaps<'a>
sourcefn clone(&self) -> MinidumpLinuxMaps<'a>
fn clone(&self) -> MinidumpLinuxMaps<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for MinidumpLinuxMaps<'a>
impl<'a> Debug for MinidumpLinuxMaps<'a>
sourceimpl<'a> Default for MinidumpLinuxMaps<'a>
impl<'a> Default for MinidumpLinuxMaps<'a>
sourceimpl<'a> MinidumpStream<'a> for MinidumpLinuxMaps<'a>
impl<'a> MinidumpStream<'a> for MinidumpLinuxMaps<'a>
sourceconst STREAM_TYPE: u32
const STREAM_TYPE: u32
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. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more