Struct minidump::MinidumpMemoryInfoList
source · [−]pub struct MinidumpMemoryInfoList<'a> { /* private fields */ }
Implementations
sourceimpl<'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
sourceimpl<'a> Clone for MinidumpMemoryInfoList<'a>
impl<'a> Clone for MinidumpMemoryInfoList<'a>
sourcefn clone(&self) -> MinidumpMemoryInfoList<'a>
fn clone(&self) -> MinidumpMemoryInfoList<'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 MinidumpMemoryInfoList<'a>
impl<'a> Debug for MinidumpMemoryInfoList<'a>
sourceimpl<'a> Default for MinidumpMemoryInfoList<'a>
impl<'a> Default for MinidumpMemoryInfoList<'a>
sourceimpl<'a> MinidumpStream<'a> for MinidumpMemoryInfoList<'a>
impl<'a> MinidumpStream<'a> for MinidumpMemoryInfoList<'a>
sourceconst 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. Read more
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
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more