Struct minidump::MinidumpLinuxMapInfo
source · pub struct MinidumpLinuxMapInfo<'a> {
pub base_address: u64,
pub final_address: u64,
pub kind: MinidumpLinuxMapKind<'a>,
pub is_read: bool,
pub is_write: bool,
pub is_exec: bool,
pub is_shared: bool,
pub is_private: bool,
/* private fields */
}
Expand description
A memory mapping entry for the process we are analyzing.
Fields§
§base_address: u64
The first address this metadata applies to
final_address: u64
The last address this metadata applies to
kind: MinidumpLinuxMapKind<'a>
The kind of mapping
is_read: bool
Whether the memory region is readable.
is_write: bool
Whether the memory region is writeable.
is_exec: bool
Whether the memory region is executable.
Whether the memory region is shared.
is_private: bool
Whether the memory region is private (copy-on-write).
Implementations§
source§impl<'a> MinidumpLinuxMapInfo<'a>
impl<'a> MinidumpLinuxMapInfo<'a>
sourcepub fn from_line(
line: &'a LinuxOsStr
) -> Result<MinidumpLinuxMapInfo<'a>, Error>
pub fn from_line( line: &'a LinuxOsStr ) -> Result<MinidumpLinuxMapInfo<'a>, Error>
Parses a line from /proc/self/maps into a [MinidumpLinuxMapInfo]
.
sourcepub fn print<T: Write>(&self, f: &mut T) -> Result<()>
pub fn print<T: Write>(&self, f: &mut T) -> Result<()>
Write a human-readable description of this.
pub fn memory_range(&self) -> Option<Range<u64>>
sourcepub fn is_readable(&self) -> bool
pub fn is_readable(&self) -> bool
Whether this memory range was readable.
sourcepub fn is_writable(&self) -> bool
pub fn is_writable(&self) -> bool
Whether this memory range was writable.
sourcepub fn is_executable(&self) -> bool
pub fn is_executable(&self) -> bool
Whether this memory range was executable.
Trait Implementations§
source§impl<'a> Clone for MinidumpLinuxMapInfo<'a>
impl<'a> Clone for MinidumpLinuxMapInfo<'a>
source§fn clone(&self) -> MinidumpLinuxMapInfo<'a>
fn clone(&self) -> MinidumpLinuxMapInfo<'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 MinidumpLinuxMapInfo<'a>
impl<'a> Debug for MinidumpLinuxMapInfo<'a>
source§impl<'a> PartialEq<MinidumpLinuxMapInfo<'a>> for MinidumpLinuxMapInfo<'a>
impl<'a> PartialEq<MinidumpLinuxMapInfo<'a>> for MinidumpLinuxMapInfo<'a>
source§fn eq(&self, other: &MinidumpLinuxMapInfo<'a>) -> bool
fn eq(&self, other: &MinidumpLinuxMapInfo<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for MinidumpLinuxMapInfo<'a>
impl<'a> StructuralEq for MinidumpLinuxMapInfo<'a>
impl<'a> StructuralPartialEq for MinidumpLinuxMapInfo<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MinidumpLinuxMapInfo<'a>
impl<'a> Send for MinidumpLinuxMapInfo<'a>
impl<'a> Sync for MinidumpLinuxMapInfo<'a>
impl<'a> Unpin for MinidumpLinuxMapInfo<'a>
impl<'a> UnwindSafe for MinidumpLinuxMapInfo<'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